fix: add virtual environment setup in Dockerfile

This commit is contained in:
Ryan Chen
2025-06-13 16:52:31 -04:00
parent bd3265e6a2
commit d1aace1c54

View File

@@ -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