Si2469 commited on
Commit
d7a42e5
1 Parent(s): e809ab0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -8
Dockerfile CHANGED
@@ -1,14 +1,15 @@
1
- # Dockerfile
2
  FROM python:3.9
 
 
3
 
4
- RUN useradd -m -u 1000 user
 
 
5
 
6
- WORKDIR /app
7
 
8
- COPY --chown=user ./requirements.txt requirements.txt
9
-
10
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
-
12
- COPY --chown=user . /app
13
 
 
14
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # Usa una imagen base de Python
2
  FROM python:3.9
3
+ # Establece el directorio de trabajo
4
+ WORKDIR /code
5
 
6
+ # Copia los archivos necesarios al contenedor
7
+ COPY ./requirements.txt /code/requirements.txt
8
+ RUN pip install --no-cache-dir -r /code/requirements.txt
9
 
10
+ COPY . .
11
 
12
+ RUN chmod -R 777 /code
 
 
 
 
13
 
14
+ # Comando para ejecutar la aplicación
15
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]