diff --git a/Dockerfile b/Dockerfile index 10725d7..46eaebb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.12.1 AS builder +FROM golang:1.12.1 RUN set -ex && \ apt-get update && \ @@ -12,10 +12,7 @@ WORKDIR /app RUN GOOS=linux go build -ldflags="-w -s" -FROM alpine:latest AS production -COPY --from=builder /app . - -VOLUME /Manuals +VOLUME /app/Manuals EXPOSE 8080 -ENTRYPOINT ["Server"] +CMD ["/app/Server"]