cv/Dockerfile

23 lines
533 B
Docker
Raw Normal View History

2023-12-30 01:36:16 +03:00
# Use the official lightweight Node.js 18 image.
2023-12-30 01:31:13 +03:00
# https://hub.docker.com/_/node
FROM node:18-slim
# Create and change to the app directory.
WORKDIR /usr/src/app
# Copy application dependency manifests to the container image.
# A wildcard is used to ensure both package.json AND package-lock.json are copied.
COPY package*.json ./
# Install all dependencies.
RUN npm install
# Copy local code to the container image.
COPY . .
# Build the app
RUN npm run build
# Run the web service on container startup.
CMD [ "npm", "start" ]