mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
13 lines
298 B
Docker
13 lines
298 B
Docker
FROM golang:1.11.2 AS backend_builder
|
|
WORKDIR /podsync
|
|
COPY . .
|
|
ENV GOOS=linux
|
|
ENV GOARCH=amd64
|
|
ENV CGO_ENABLED=0
|
|
RUN go build -o server -v ./cmd/app
|
|
|
|
FROM alpine
|
|
RUN apk --update --no-cache add ca-certificates
|
|
WORKDIR /app/
|
|
COPY --from=backend_builder /podsync/server .
|
|
ENTRYPOINT ["/app/server"] |