ChartQA_FLASK / Dockerfile
sushintern01's picture
Update Dockerfile
c3ec3cd verified
raw
history blame contribute delete
458 Bytes
FROM python:3.9
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
# Create directory for session files
RUN mkdir -p /app/flask_session
# Make upload directory
RUN mkdir -p /app/static/uploads
# Set permissions
RUN chmod -R 777 /app/static/uploads
RUN chmod -R 777 /app/flask_session
# Set environment variables
ENV FLASK_APP=app.py
ENV FLASK_ENV=production
# Run the app
CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"]