1
1
mirror of https://github.com/cooperspencer/gickup synced 2024-11-08 12:09:18 +01:00

Update Dockerfile (#102)

* Update Dockerfile

add git to builder stage

* added `go mod tidy`

* fix build version of golang

* added copy of `go.mod` and `go.sum`
This commit is contained in:
Andreas Wachter 2022-03-20 13:05:10 +01:00 committed by GitHub
parent 646b792ac1
commit 96419e641e
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -1,10 +1,13 @@
FROM golang:alpine as builder
FROM golang:1.17-alpine as builder
# Install dependencies for copy
RUN apk add -U --no-cache ca-certificates tzdata
RUN apk add -U --no-cache ca-certificates tzdata git
# Use an valid GOPATH and copy the files
WORKDIR /go/src/github.com/cooperspencer/gickup
COPY go.mod .
COPY go.sum .
RUN go mod tidy
COPY . .
# Fetching dependencies and build the app