blog/Dockerfile
d3vyce 3ae3d3c39f
All checks were successful
Build Blog Docker Image / build docker (push) Successful in 1m5s
add: nginx configurations
2024-02-17 15:57:38 +01:00

21 lines
453 B
Docker

FROM git.d3vyce.fr/d3vyce/hugo:latest AS build
WORKDIR /opt/blog
COPY . /opt/blog/
RUN git submodule update --init --recursive
RUN hugo
FROM nginx:1.25-alpine
WORKDIR /usr/share/nginx/html
COPY --from=build /opt/blog/public /usr/share/nginx/html/
COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY nginx/default.conf /etc/nginx/conf.d/default/conf
RUN apk update && \
apk add --no-cache ca-certificates libc6-compat libstdc++ git
EXPOSE 80/tcp