team-4/frontend/Dockerfile
2025-08-02 13:28:10 +02:00

21 lines
391 B
Docker

# Use the Node alpine official image
# https://hub.docker.com/_/node
FROM node:lts-alpine
# Create and change to the app directory.
WORKDIR /app
# Copy the files to the container image
COPY frontend/package*.json ./
# Install packages
RUN npm ci
# Copy local code to the container image.
COPY frontend/ ./
# Build the app.
RUN npm run build
# Serve the app
CMD ["npm", "run", "start"]