Dockerfile Update (#174)

* Update Dockerfile

Replaced --no-dev with --only main

* Update Dockerfile

Updated command
This commit is contained in:
Kaldigo 2025-01-30 00:29:44 +00:00 committed by GitHub
parent 80256012ad
commit 736e6702f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,7 @@ RUN python -m venv /app/talemate_env
# Activate virtual environment and install dependencies
RUN . /app/talemate_env/bin/activate && \
poetry config virtualenvs.create false && \
poetry install --no-dev --no-root
poetry install --only main --no-root
# Copy the Python source code
COPY ./src /app/src
@ -83,4 +83,4 @@ EXPOSE 5050
EXPOSE 8080
# Use bash as the shell, activate the virtual environment, and run backend server
CMD ["poetry run src/talemate/server/run.py runserver --host 0.0.0.0 --port 5050 --frontend-host 0.0.0.0 --frontend-port 8080"]
CMD ["/bin/bash", "-c", "source /app/talemate_env/bin/activate && python src/talemate/server/run.py runserver --host 0.0.0.0 --port 5050 --frontend-host 0.0.0.0 --frontend-port 8080"]