Update Dockerfile
Browse files- Dockerfile +11 -9
Dockerfile
CHANGED
|
@@ -1,23 +1,25 @@
|
|
| 1 |
-
# Use official Python image
|
| 2 |
FROM python:3.9
|
| 3 |
|
| 4 |
-
# Set
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
|
| 9 |
-
# RUN pip install -r requirements.txt
|
| 10 |
|
| 11 |
-
# Install
|
| 12 |
RUN pip install flask pillow
|
| 13 |
|
| 14 |
-
# Copy
|
| 15 |
COPY . .
|
| 16 |
|
| 17 |
-
#
|
|
|
|
|
|
|
|
|
|
| 18 |
RUN mkdir -p /app/output && chmod -R 777 /app/output
|
| 19 |
|
| 20 |
-
# Expose port
|
| 21 |
EXPOSE 7860
|
| 22 |
|
| 23 |
# Start the Flask app
|
|
|
|
| 1 |
+
# Use official Python image
|
| 2 |
FROM python:3.9
|
| 3 |
|
| 4 |
+
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Install system dependencies for fonts
|
| 8 |
+
RUN apt-get update && apt-get install -y fonts-dejavu-core
|
|
|
|
| 9 |
|
| 10 |
+
# Install required Python packages
|
| 11 |
RUN pip install flask pillow
|
| 12 |
|
| 13 |
+
# Copy application files
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
+
# Ensure the Gagalin font is included
|
| 17 |
+
COPY Gagalin.otf /app/Gagalin.otf
|
| 18 |
+
|
| 19 |
+
# Set permissions for output directory
|
| 20 |
RUN mkdir -p /app/output && chmod -R 777 /app/output
|
| 21 |
|
| 22 |
+
# Expose port 7860
|
| 23 |
EXPOSE 7860
|
| 24 |
|
| 25 |
# Start the Flask app
|