1
0
Fork 0

Update Dockerfile

pull/2/head
Ambrose Chua 2021-05-11 23:00:19 +08:00 committed by GitHub
parent 2358307cb5
commit 8268ff8d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -1,19 +1,13 @@
FROM golang:1.16-alpine3.13 AS build
RUN apk add \
make
WORKDIR /go/src/app
COPY . .
RUN make TAGS=production
RUN go build
FROM alpine:3.13
RUN apk add --no-cache \
tzdata
WORKDIR /app
COPY --from=build /go/src/app/scramble .