mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
cha25
This commit is contained in:
@@ -13,7 +13,7 @@ services:
|
||||
backend:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: ../docker/backend/Dockerfile
|
||||
dockerfile: Dockerfile
|
||||
container_name: support-backend
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
|
@@ -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 \
|
||||
|
Reference in New Issue
Block a user