removed python installation for frontend

This commit is contained in:
2025-10-21 23:29:24 +02:00
parent d43162aff6
commit 590cf2d10f

View File

@@ -30,7 +30,6 @@ RUN npm ci
# Copy backend source # Copy backend source
COPY backend/src/ ./src/ COPY backend/src/ ./src/
#COPY backend/python-scripts/ ./python-scripts/
# Build backend # Build backend
RUN npm run build RUN npm run build
@@ -63,10 +62,10 @@ FROM node:20-alpine
WORKDIR /app WORKDIR /app
# Install Python and OR-Tools for production # Install Python and OR-Tools for production
RUN apk add --no-cache \ #RUN apk add --no-cache \
python \ # python \
py3-pip \ # py3-pip \
&& pip3 install ortools # && pip3 install ortools
# Install PM2 for process management # Install PM2 for process management
RUN npm install -g pm2 RUN npm install -g pm2
@@ -91,8 +90,8 @@ RUN addgroup -g 1001 -S nodejs && \
USER schichtplan USER schichtplan
# Verify installations # Verify installations
RUN python --version && \ #RUN python --version && \
python -c "from ortools.sat.python import cp_model; print('OR-Tools verified')" # python -c "from ortools.sat.python import cp_model; print('OR-Tools verified')"
EXPOSE 3000 3002 EXPOSE 3000 3002