Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -2,7 +2,8 @@ FROM python:3.10-slim
|
|
2 |
|
3 |
# Set environment variables
|
4 |
ENV PYTHONUNBUFFERED=1
|
5 |
-
|
|
|
6 |
|
7 |
# Install system dependencies (ffmpeg, fontconfig for managing copied fonts)
|
8 |
RUN apt-get update && \
|
@@ -15,7 +16,7 @@ RUN apt-get update && \
|
|
15 |
rm -rf /var/lib/apt/lists/*
|
16 |
|
17 |
# Create directory for custom fonts and copy your font file(s)
|
18 |
-
# Make sure 'assets/fonts/arial.ttf' exists in your repository
|
19 |
RUN mkdir -p /usr/local/share/fonts/truetype/mycustomfonts
|
20 |
COPY assets/fonts/arial.ttf /usr/local/share/fonts/truetype/mycustomfonts/arial.ttf
|
21 |
# If you have other fonts, COPY them here as well:
|
|
|
2 |
|
3 |
# Set environment variables
|
4 |
ENV PYTHONUNBUFFERED=1
|
5 |
+
# Still good practice for preventing interactive prompts during apt-get install
|
6 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
7 |
|
8 |
# Install system dependencies (ffmpeg, fontconfig for managing copied fonts)
|
9 |
RUN apt-get update && \
|
|
|
16 |
rm -rf /var/lib/apt/lists/*
|
17 |
|
18 |
# Create directory for custom fonts and copy your font file(s)
|
19 |
+
# Make sure 'assets/fonts/arial.ttf' (or your chosen font) exists in your repository
|
20 |
RUN mkdir -p /usr/local/share/fonts/truetype/mycustomfonts
|
21 |
COPY assets/fonts/arial.ttf /usr/local/share/fonts/truetype/mycustomfonts/arial.ttf
|
22 |
# If you have other fonts, COPY them here as well:
|