1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00
mxpv-podsync/Dockerfile

13 lines
298 B
Docker
Raw Normal View History

2018-12-10 17:08:59 -08:00
FROM golang:1.11.2 AS backend_builder
2018-11-22 14:48:53 -08:00
WORKDIR /podsync
2018-12-10 21:35:50 -08:00
COPY . .
2017-07-19 19:40:44 -07:00
ENV GOOS=linux
ENV GOARCH=amd64
ENV CGO_ENABLED=0
2018-11-22 14:48:53 -08:00
RUN go build -o server -v ./cmd/app
2017-07-19 19:40:44 -07:00
FROM alpine
RUN apk --update --no-cache add ca-certificates
WORKDIR /app/
2018-12-10 17:08:59 -08:00
COPY --from=backend_builder /podsync/server .
2018-11-22 14:48:53 -08:00
ENTRYPOINT ["/app/server"]