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:
build:
context: ./backend
dockerfile: ../docker/backend/Dockerfile
dockerfile: Dockerfile
container_name: support-backend
restart: unless-stopped
environment:

View File

@@ -2,12 +2,12 @@ FROM node:18-alpine as build
WORKDIR /app
# Copy package files
COPY package*.json ./
# Copy package files from frontend directory
COPY frontend/package*.json ./
RUN npm install
# Copy source code
COPY . .
# Copy frontend source code
COPY frontend/ .
# Build the app
RUN npm run build
@@ -21,7 +21,7 @@ COPY --from=build /app/dist /usr/share/nginx/html
RUN mkdir -p /etc/nginx/conf.d
# 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
RUN mkdir -p /var/cache/nginx \