Samuel commited on
Commit
56fd81f
·
1 Parent(s): 7578e01
Files changed (1) hide show
  1. Dockerfile +2 -16
Dockerfile CHANGED
@@ -3,7 +3,7 @@ FROM ubuntu:22.04
3
  # Prevent interactive prompts during installation
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
- # Install system dependencies including fonts
7
  RUN apt-get update && apt-get install -y \
8
  python3 \
9
  python3-pip \
@@ -24,24 +24,10 @@ RUN apt-get update && apt-get install -y \
24
  fonts-ubuntu \
25
  fonts-lobster \
26
  fontconfig \
27
- wget \
28
- unzip \
29
  && apt-get clean \
30
  && rm -rf /var/lib/apt/lists/*
31
 
32
- # Download additional script/decorative fonts from Google Fonts
33
- RUN mkdir -p /usr/share/fonts/truetype/google-fonts && \
34
- cd /tmp && \
35
- # Dancing Script - elegant script font
36
- wget -q "https://github.com/google/fonts/raw/main/ofl/dancingscript/DancingScript%5Bwght%5D.ttf" -O /usr/share/fonts/truetype/google-fonts/DancingScript.ttf && \
37
- # Pacifico - playful script font
38
- wget -q "https://github.com/google/fonts/raw/main/ofl/pacifico/Pacifico-Regular.ttf" -O /usr/share/fonts/truetype/google-fonts/Pacifico.ttf && \
39
- # Satisfy - handwriting font
40
- wget -q "https://github.com/google/fonts/raw/main/ofl/satisfy/Satisfy-Regular.ttf" -O /usr/share/fonts/truetype/google-fonts/Satisfy.ttf && \
41
- # Great Vibes - elegant script
42
- wget -q "https://github.com/google/fonts/raw/main/ofl/greatvibes/GreatVibes-Regular.ttf" -O /usr/share/fonts/truetype/google-fonts/GreatVibes.ttf && \
43
- fc-cache -f -v
44
-
45
  # Install Python dependencies
46
  RUN pip3 install --no-cache-dir flask flask-cors
47
 
 
3
  # Prevent interactive prompts during installation
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
+ # Install system dependencies including fonts (no external downloads)
7
  RUN apt-get update && apt-get install -y \
8
  python3 \
9
  python3-pip \
 
24
  fonts-ubuntu \
25
  fonts-lobster \
26
  fontconfig \
27
+ && fc-cache -f -v \
 
28
  && apt-get clean \
29
  && rm -rf /var/lib/apt/lists/*
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  # Install Python dependencies
32
  RUN pip3 install --no-cache-dir flask flask-cors
33