Some checks failed
Build Blog Docker Image / build docker (push) Failing after 1m43s
18 lines
434 B
Docker
18 lines
434 B
Docker
FROM git.d3vyce.fr/d3vyce/hugo:latest AS build
|
|
|
|
WORKDIR /opt/blog
|
|
COPY . /opt/blog/
|
|
|
|
RUN git submodule update --init --recursive && GIT_TRACE=1 GIT_TRANSFER_TRACE=1 GIT_CURL_VERBOSE=1 git lfs pull
|
|
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
|
|
|
|
EXPOSE 80/tcp
|