From 72ec84ff6e043194bb9b7d8b669f3b1a17e7b656 Mon Sep 17 00:00:00 2001 From: Senthilkumar Panneerselvam Date: Thu, 22 Jun 2023 08:36:10 +0200 Subject: [PATCH] Update Docker file --- .hugo_build.lock | 0 Dockerfile | 10 +++------- 2 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 .hugo_build.lock diff --git a/.hugo_build.lock b/.hugo_build.lock deleted file mode 100644 index e69de29..0000000 diff --git a/Dockerfile b/Dockerfile index 8f7e9c6..33908ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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