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 866b0cbbf7 change docker
2024-12-23 23:44:46 +06:00

21 lines
340 B
Docker

# docker/frontend/Dockerfile
FROM node:18-alpine as build
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Build the application
RUN npm run build
# Copy built files to nginx html directory
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html