team-4/frontend/Dockerfile

22 lines
391 B
Text
Raw Permalink Normal View History

2025-08-02 13:28:10 +02:00
# 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"]