Skip to content

Commit

Permalink
docker build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
darthvader2 committed Apr 17, 2024
1 parent abb163e commit ee4cf32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
web/content/datasets/*
dev_utils/*
nginx_proxy/*
charts/
dev_utils/
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ WORKDIR /lp_app
COPY . .
ENV GO111MODULE=on
ENV CGO_ENABLED=0
RUN go build -o test .
RUN go build -o app .

FROM alpine:3.17

WORKDIR /gen_app
RUN apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community hugo
COPY --from=build /lp_app/test /gen_app
COPY dev_utils .

CMD ["./test"]
COPY --from=build /lp_app/app .
COPY --from=build /lp_app/web web/
CMD ["./app"]

0 comments on commit ee4cf32

Please sign in to comment.