2020-12-02 20:23:07 +00:00
|
|
|
FROM node as npm-builder
|
|
|
|
|
|
|
|
COPY . /static/
|
|
|
|
|
2021-03-16 21:02:58 +00:00
|
|
|
ENV NODE_ENV=production
|
|
|
|
RUN cd /static && npm i --production=false && npm run build
|
2020-12-02 20:23:07 +00:00
|
|
|
|
|
|
|
FROM nginx
|
|
|
|
|
2021-04-10 14:11:26 +01:00
|
|
|
RUN mkdir /usr/share/nginx/html/.well-known
|
2020-12-02 20:23:07 +00:00
|
|
|
COPY --from=npm-builder /static/robots.txt /usr/share/nginx/html/robots.txt
|
2021-04-10 14:11:26 +01:00
|
|
|
COPY --from=npm-builder /static/security.txt /usr/share/nginx/html/.well-known/security.txt
|
2020-12-02 20:23:07 +00:00
|
|
|
COPY --from=npm-builder /static/dist/ /usr/share/nginx/html/static/dist/
|
2020-12-13 16:50:30 +00:00
|
|
|
COPY --from=npm-builder /static/authentik/ /usr/share/nginx/html/static/authentik/
|
2021-02-11 23:00:11 +00:00
|
|
|
COPY ./nginx.conf /etc/nginx/nginx.conf
|