Skip to content

Commit

Permalink
Update Docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
senthil10 committed Jun 28, 2023
1 parent d8d9c00 commit 72ec84f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Empty file removed .hugo_build.lock
Empty file.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
FROM alpine AS build
RUN apk update && apk add hugo
COPY . /src
WORKDIR /src
RUN hugo
FROM klakegg/hugo:0.104.3-ubuntu-onbuild AS build

FROM nginxinc/nginx-unprivileged:alpine
COPY --from=build /src/public /usr/share/nginx/html
RUN sed -i '3 a\ absolute_redirect off;' /etc/nginx/conf.d/default.conf
RUN sed -i 's/#error_page 404/error_page 404/' /etc/nginx/conf.d/default.conf
COPY --from=build /target /usr/share/nginx/html

USER 10200
EXPOSE 8080

0 comments on commit 72ec84f

Please sign in to comment.