Production env for the front

This commit is contained in:
2023-03-14 18:59:56 +01:00
parent b598e7a147
commit 2ba34a675d
5 changed files with 107 additions and 17 deletions

View File

@@ -1,22 +1,11 @@
FROM node:lts-alpine
# install simple http server for serving static content
RUN npm install -g http-server
# make the 'app' folder the current working directory
WORKDIR /app
RUN npm install -g @angular/cli
# copy both 'package.json' and 'package-lock.json' (if available)
RUN npm install -g @angular/cli http-server
COPY app/package*.json ./
# install project dependencies
RUN npm install
# copy project files and folders to the current working directory (i.e. 'app' folder)
COPY app/ .
# build app for production with minification
RUN npm run build
EXPOSE 4200