From 736e6702f53de11609ef674d9c83b6961c75901b Mon Sep 17 00:00:00 2001 From: Kaldigo <6437691+kaldigo@users.noreply.github.com> Date: Thu, 30 Jan 2025 00:29:44 +0000 Subject: [PATCH] Dockerfile Update (#174) * Update Dockerfile Replaced --no-dev with --only main * Update Dockerfile Updated command --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 40442a73..2f78a67d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +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"]