mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-11-30 22:45:46 +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 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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user