Aw / Dockerfile
Reaperxxxx's picture
Update Dockerfile
867e383 verified
Raw
History Blame Contribute Delete
527 Bytes
# Use official Python image
FROM python:3.9
# Set working directory
WORKDIR /app
# Install system dependencies for fonts
RUN apt-get update && apt-get install -y fonts-dejavu-core
# Install required Python packages
RUN pip install flask pillow
# Copy application files
COPY . .
# Ensure the Gagalin font is included
COPY gagalin.otf /app/gagalin.otf
# Set permissions for output directory
RUN mkdir -p /app/output && chmod -R 777 /app/output
# Expose port 7860
EXPOSE 7860
# Start the Flask app
CMD ["python", "app.py"]