Skip to content

Commit

Permalink
forgot to add the static and template files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaardsholt committed Oct 6, 2021
1 parent f198760 commit 5bafdbd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ COPY . .
RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /tmp/app

FROM alpine
COPY --from=builder /tmp/app /app
RUN mkdir /app
WORKDIR /app
COPY --from=builder /tmp/app app
ADD ./static static/
ADD ./templates templates/

RUN mkdir -p /config
RUN addgroup -S appgroup && adduser -S appuser -G appgroup && chown -R appuser /config
RUN addgroup -S appgroup && adduser -S appuser -G appgroup && chown -R appuser /app

USER appuser
CMD ["/app"]
CMD ["/app/app"]

0 comments on commit 5bafdbd

Please sign in to comment.