From 9a18804913e4d4fe781711a0155b8c01304a6b19 Mon Sep 17 00:00:00 2001 From: Janne Koschinski <janne@kuschku.de> Date: Sun, 18 Mar 2018 05:18:14 +0100 Subject: [PATCH] Minor dockerfile improvements --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2feb314..8f58401 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,8 @@ RUN apk add --no-cache curl git gcc musl-dev RUN curl https://glide.sh/get | sh WORKDIR /go/src/app -COPY . . +COPY *.go . +COPY glide.* . RUN glide install RUN CGO_ENABLED=false go build -a app . @@ -18,6 +19,6 @@ RUN npm run build FROM alpine:3.7 WORKDIR / COPY --from=go_builder /go/src/app/app /app -COPY --from=go_builder /go/src/app/templates /templates +COPY templates /templates COPY --from=asset_builder /app/assets /assets -CMD ["/app"] \ No newline at end of file +ENTRYPOINT ["/app"] \ No newline at end of file -- GitLab