This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/web/Dockerfile
Jens L 6164db5a18
root: attempt to build static image without django's collectstatic (#360)
* root: attempt to build static image without django's collectstatic

* web: move static dockerfile to /web

* web: fix dockerfile path

* web: improve image size by not copying node_modules
2020-12-02 21:23:07 +01:00

11 lines
246 B
Docker

FROM node as npm-builder
COPY . /static/
RUN cd /static && npm i && npm run build
FROM nginx
COPY --from=npm-builder /static/robots.txt /usr/share/nginx/html/robots.txt
COPY --from=npm-builder /static/dist/ /usr/share/nginx/html/static/dist/