From d1aace1c54936a2a9720a9a03087fadff6ccaaed Mon Sep 17 00:00:00 2001 From: Ryan Chen Date: Fri, 13 Jun 2025 16:52:31 -0400 Subject: [PATCH] fix: add virtual environment setup in Dockerfile --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e5d3759..6254d77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,12 +20,15 @@ COPY templates/ templates/ # Create uploads directory RUN mkdir -p static/uploads -# Install Python dependencies -RUN uv pip install -e . +# Create and activate virtual environment, then install dependencies +RUN uv venv && \ + . .venv/bin/activate && \ + uv pip install -e . # Set environment variables ENV FLASK_APP=main.py ENV FLASK_ENV=production +ENV PATH="/app/.venv/bin:$PATH" # Expose port EXPOSE 5000