Extracted frontend from webservice to new directory

Updated directory structure
Updated .gitignore
This commit is contained in:
2022-03-17 17:11:00 +01:00
parent 0140fe4b7c
commit ecc532b752
80 changed files with 338 additions and 204 deletions

19
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM node:latest as build
WORKDIR /usr/local/app
COPY frontend /usr/local/app/
RUN npm install
RUN npm run build
RUN ls /usr/local/app/dist
FROM nginx:latest
COPY --from=build /usr/local/app/dist/aktienbot /usr/share/nginx/html
HEALTHCHECK --interval=15s --timeout=2s CMD ["./deploy/healthcheck.sh"]
EXPOSE 80