16 lines
548 B
Docker
16 lines
548 B
Docker
FROM node as npm-builder
|
|
|
|
COPY . /static/
|
|
|
|
ENV NODE_ENV=production
|
|
RUN cd /static && npm i --production=false && npm run build
|
|
|
|
FROM nginx
|
|
|
|
RUN mkdir /usr/share/nginx/html/.well-known
|
|
COPY --from=npm-builder /static/robots.txt /usr/share/nginx/html/robots.txt
|
|
COPY --from=npm-builder /static/security.txt /usr/share/nginx/html/.well-known/security.txt
|
|
COPY --from=npm-builder /static/dist/ /usr/share/nginx/html/static/dist/
|
|
COPY --from=npm-builder /static/authentik/ /usr/share/nginx/html/static/authentik/
|
|
COPY ./nginx.conf /etc/nginx/nginx.conf
|