Files
letsmeet/front/Dockerfile
2025-03-11 13:35:29 +01:00

21 lines
510 B
Docker

FROM node:lts-alpine
# install simple http server for serving static content
RUN npm install -g serve
# make the 'app' folder the current working directory
WORKDIR /app
# copy both 'package.json' and 'package-lock.json' (if available)
COPY package*.json ./
# install project dependencies
RUN npm install
# copy project files and folders to the current working directory (i.e. 'app' folder)
COPY . .
# build app for production with minification
RUN npm run build
CMD ["serve", "-s", "dist", "-l", "3001"]