1
0
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
Ambrose Chua 8268ff8d16
Update Dockerfile 2021-05-11 23:00:19 +08:00
Ambrose Chua 2358307cb5
Create Dockerfile 2021-05-11 22:56:38 +08:00
1 changed files with 14 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM golang:1.16-alpine3.13 AS build
WORKDIR /go/src/app
COPY . .
RUN go build
FROM alpine:3.13
WORKDIR /app
COPY --from=build /go/src/app/scramble .
CMD ["./scramble"]