mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
19 lines
281 B
Docker
19 lines
281 B
Docker
FROM node:18-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package files
|
|
COPY frontend/package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy source code
|
|
COPY frontend/ .
|
|
|
|
# Build the app
|
|
RUN npm run build
|
|
|
|
# Keep container running and serve the built files
|
|
CMD ["npm", "run", "preview"]
|