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

Fix TypeScript errors and Dockerfile configuration

This commit is contained in:
MoonTestUse1
2025-01-06 10:09:34 +06:00
parent 5d81279583
commit 8366162906
2 changed files with 13 additions and 7 deletions

View File

@@ -12,11 +12,15 @@ RUN npm install
# Copy source code
COPY . .
# Install TypeScript and Vue compiler globally
RUN npm install -g typescript @vue/compiler-sfc
# Install Vue compiler globally
RUN npm install -g @vue/compiler-sfc
# Build the application
RUN npm run build
# Set environment variables
ENV NODE_ENV=production
ENV VITE_API_URL=/api
# Build the application with increased memory limit
RUN NODE_OPTIONS="--max-old-space-size=4096" npm run build
# Production stage
FROM nginx:alpine