datacipen commited on
Commit
bd2e512
·
verified ·
1 Parent(s): bf46029

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -12
Dockerfile CHANGED
@@ -1,18 +1,12 @@
1
  # Utilise une image Python officielle comme base
2
- #FROM python:3.11-slim-buster
3
- FROM python:3.11
4
 
5
- RUN useradd -m -u 1000 user
6
- USER user
7
- ENV HOME=/home/user \
8
- PATH=/home/user/.local/bin:$PATH
9
- WORKDIR $HOME/app
10
- COPY --chown=user . $HOME/app
11
- COPY --chown=user . $HOME/app/.files
12
- COPY ./requirements.txt ~/app/requirements.txt
13
 
14
- #RUN pip install --no-cache-dir -r requirements.txt
15
- RUN pip install -r requirements.txt
 
16
 
17
  # Copie le reste de l'application
18
  COPY . .
 
1
  # Utilise une image Python officielle comme base
2
+ FROM python:3.11-slim-buster
 
3
 
4
+ # Définit le répertoire de travail dans le conteneur
5
+ WORKDIR /app
 
 
 
 
 
 
6
 
7
+ # Copie le fichier requirements.txt et installe les dépendances
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
 
11
  # Copie le reste de l'application
12
  COPY . .