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:
parent
646b792ac1
commit
96419e641e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user