updates to build container
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -1,9 +1,21 @@
|
||||
|
||||
FROM nginx
|
||||
ARG DOC_UTILS_VERSION
|
||||
ARG NGINX_VERSION
|
||||
|
||||
FROM gitea.jbrumond.me/doc-utils/utils:${DOC_UTILS_VERSION} AS build_stage
|
||||
WORKDIR /workspace
|
||||
|
||||
# build website from source files
|
||||
COPY docs layouts partials config.yaml metadata.json /workspace/
|
||||
RUN docs2website config.yaml
|
||||
|
||||
|
||||
|
||||
FROM nginx:${NGINX_VERSION} AS deploy_stage
|
||||
EXPOSE 80
|
||||
|
||||
# actual web content
|
||||
COPY www/ /usr/share/nginx/html
|
||||
# copy actual web content built above
|
||||
COPY --from=build_stage /workspace/www/ /usr/share/nginx/html
|
||||
RUN chmod -R +rX /usr/share/nginx/html
|
||||
|
||||
# nginx config files
|
||||
|
Reference in New Issue
Block a user