Extracted frontend from webservice to new directory
Updated directory structure Updated .gitignore
This commit is contained in:
19
frontend/Dockerfile
Normal file
19
frontend/Dockerfile
Normal 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
|
Reference in New Issue
Block a user