mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-12-01 06:55:45 +01:00
removed python installation for frontend
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -30,7 +30,6 @@ RUN npm ci
|
||||
|
||||
# Copy backend source
|
||||
COPY backend/src/ ./src/
|
||||
#COPY backend/python-scripts/ ./python-scripts/
|
||||
|
||||
# Build backend
|
||||
RUN npm run build
|
||||
@@ -63,10 +62,10 @@ FROM node:20-alpine
|
||||
WORKDIR /app
|
||||
|
||||
# Install Python and OR-Tools for production
|
||||
RUN apk add --no-cache \
|
||||
python \
|
||||
py3-pip \
|
||||
&& pip3 install ortools
|
||||
#RUN apk add --no-cache \
|
||||
# python \
|
||||
# py3-pip \
|
||||
# && pip3 install ortools
|
||||
|
||||
# Install PM2 for process management
|
||||
RUN npm install -g pm2
|
||||
@@ -91,8 +90,8 @@ RUN addgroup -g 1001 -S nodejs && \
|
||||
USER schichtplan
|
||||
|
||||
# Verify installations
|
||||
RUN python --version && \
|
||||
python -c "from ortools.sat.python import cp_model; print('OR-Tools verified')"
|
||||
#RUN python --version && \
|
||||
# python -c "from ortools.sat.python import cp_model; print('OR-Tools verified')"
|
||||
|
||||
EXPOSE 3000 3002
|
||||
|
||||
|
||||
Reference in New Issue
Block a user