mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-12-01 06:55:45 +01:00
changed up pyhton installation
This commit is contained in:
@@ -14,12 +14,13 @@ RUN apk add --no-cache \
|
||||
g++ \
|
||||
linux-headers
|
||||
|
||||
# Create symlink so python3 is callable as python
|
||||
RUN ln -sf /usr/bin/python3 /usr/bin/python
|
||||
# Install python package which provides 'python' command
|
||||
RUN apk add --no-cache python3 py3-pip && \
|
||||
ln -s /usr/bin/python3 /usr/bin/python
|
||||
|
||||
# Upgrade pip and install Python dependencies
|
||||
RUN python -m pip install --upgrade pip && \
|
||||
pip install ortools
|
||||
RUN python3 -m pip install --upgrade pip && \
|
||||
python3 -m pip install ortools
|
||||
|
||||
# Copy backend files
|
||||
COPY backend/package*.json ./
|
||||
|
||||
Reference in New Issue
Block a user