1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00
This commit is contained in:
MoonTestUse1
2024-12-24 02:38:02 +06:00
parent 022dcbcbdd
commit 3d48bab349
2 changed files with 6 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ services:
backend: backend:
build: build:
context: ./backend context: ./backend
dockerfile: ../docker/backend/Dockerfile dockerfile: Dockerfile
container_name: support-backend container_name: support-backend
restart: unless-stopped restart: unless-stopped
environment: environment:

View File

@@ -2,12 +2,12 @@ FROM node:18-alpine as build
WORKDIR /app WORKDIR /app
# Copy package files # Copy package files from frontend directory
COPY package*.json ./ COPY frontend/package*.json ./
RUN npm install RUN npm install
# Copy source code # Copy frontend source code
COPY . . COPY frontend/ .
# Build the app # Build the app
RUN npm run build RUN npm run build
@@ -21,7 +21,7 @@ COPY --from=build /app/dist /usr/share/nginx/html
RUN mkdir -p /etc/nginx/conf.d RUN mkdir -p /etc/nginx/conf.d
# Copy nginx configuration # Copy nginx configuration
COPY ../docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf COPY docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
# Create required directories and set permissions # Create required directories and set permissions
RUN mkdir -p /var/cache/nginx \ RUN mkdir -p /var/cache/nginx \