feat: add frontend

This commit is contained in:
2022-10-07 16:15:53 +02:00
parent abfaf19c47
commit 97059d4c6e
72 changed files with 47026 additions and 0 deletions

25
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM node:16 as builder
ARG BACKEND_BASE_URL
RUN npm install -g npm
USER node
COPY --chown=1000:1000 ./package.json /application/package.json
COPY --chown=1000:1000 ./package-lock.json /application/package-lock.json
WORKDIR /application
RUN npm install
COPY --chown=1000:1000 . /application
RUN npm run generate
FROM nginx
COPY --from=builder --chown=1000:1000 /application/dist /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]