TelegramAktienBot/frontend/Dockerfile
H4CK3R-01 ecc532b752 Extracted frontend from webservice to new directory
Updated directory structure
Updated .gitignore
2022-03-17 17:11:00 +01:00

20 lines
319 B
Docker

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