First commit
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM golang:1.12-stretch as builder
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
ENV GO111MODULE=on
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o service
|
||||
RUN go get github.com/pilu/fresh
|
||||
|
||||
#second stage
|
||||
FROM alpine:latest
|
||||
WORKDIR /app
|
||||
RUN apk add --no-cache tzdata
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=builder /app .
|
||||
CMD ./service
|
Reference in New Issue
Block a user