1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

change docker

This commit is contained in:
MoonTestUse1
2024-12-24 00:03:42 +06:00
parent baaf9afc84
commit 3660537cd8
4 changed files with 26 additions and 54 deletions

View File

@@ -1,20 +1,12 @@
# docker/frontend/Dockerfile
FROM node:18-alpine as build
FROM node:18-alpine as builder
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
FROM scratch
COPY --from=builder /app/dist /dist