Skip to content
Snippets Groups Projects
Commit 9a188049 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Minor dockerfile improvements

parent 03e076c9
Branches
No related tags found
No related merge requests found
...@@ -4,7 +4,8 @@ RUN apk add --no-cache curl git gcc musl-dev ...@@ -4,7 +4,8 @@ RUN apk add --no-cache curl git gcc musl-dev
RUN curl https://glide.sh/get | sh RUN curl https://glide.sh/get | sh
WORKDIR /go/src/app WORKDIR /go/src/app
COPY . . COPY *.go .
COPY glide.* .
RUN glide install RUN glide install
RUN CGO_ENABLED=false go build -a app . RUN CGO_ENABLED=false go build -a app .
...@@ -18,6 +19,6 @@ RUN npm run build ...@@ -18,6 +19,6 @@ RUN npm run build
FROM alpine:3.7 FROM alpine:3.7
WORKDIR / WORKDIR /
COPY --from=go_builder /go/src/app/app /app 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 COPY --from=asset_builder /app/assets /assets
CMD ["/app"] ENTRYPOINT ["/app"]
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment