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:
|
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:
|
||||||
|
@@ -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 \
|
||||||
|
Reference in New Issue
Block a user