Docfile commited on
Commit
ca8893f
·
verified ·
1 Parent(s): fb75a70

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -1,8 +1,8 @@
1
  FROM python:3.11
2
 
3
- # Installer poppler-utils et texlive-latex-extra
4
  USER root
5
- RUN apt-get update && apt-get install -y poppler-utils texlive-latex-extra && rm -rf /var/lib/apt/lists/*
6
 
7
  # Créer un utilisateur non-root
8
  RUN useradd -m -u 1000 user
@@ -10,10 +10,8 @@ USER user
10
  ENV PATH="/home/user/.local/bin:$PATH"
11
 
12
  WORKDIR /app
13
-
14
  COPY --chown=user ./requirements.txt requirements.txt
15
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
16
-
17
  COPY --chown=user . /app
18
 
19
  # Commande de démarrage Flask
 
1
  FROM python:3.11
2
 
3
+ # Installer poppler-utils, texlive-latex-extra et texlive-full
4
  USER root
5
+ RUN apt-get update && apt-get install -y poppler-utils texlive-latex-extra texlive-full && rm -rf /var/lib/apt/lists/*
6
 
7
  # Créer un utilisateur non-root
8
  RUN useradd -m -u 1000 user
 
10
  ENV PATH="/home/user/.local/bin:$PATH"
11
 
12
  WORKDIR /app
 
13
  COPY --chown=user ./requirements.txt requirements.txt
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
 
15
  COPY --chown=user . /app
16
 
17
  # Commande de démarrage Flask