1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00
Files
AdministrationItDepartmens/docker/frontend/Dockerfile
MoonTestUse1 7d6a424c8d change docker
2024-12-23 23:19:10 +06:00

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"]