1
0
Fork 0

Create Dockerfile

pull/2/head
Ambrose Chua 2021-05-11 22:56:38 +08:00 committed by GitHub
parent 210a15d990
commit 2358307cb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

20
Dockerfile Normal file
View File

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