Rollback Dockerfile
Browse files- Dockerfile +8 -13
Dockerfile
CHANGED
@@ -1,19 +1,14 @@
|
|
1 |
-
FROM python:3.
|
2 |
|
3 |
-
WORKDIR /
|
4 |
|
5 |
-
|
6 |
-
RUN python -m venv /opt/venv
|
7 |
|
8 |
-
|
9 |
-
RUN /opt/venv/bin/pip install --upgrade pip
|
10 |
|
11 |
-
# Copiar e instalar requerimientos
|
12 |
-
COPY requirements.txt .
|
13 |
-
RUN /opt/venv/bin/pip install -r requirements.txt
|
14 |
-
|
15 |
-
# Copiar el código
|
16 |
COPY . .
|
17 |
|
18 |
-
#
|
19 |
-
|
|
|
|
|
|
1 |
+
FROM python:3.13
|
2 |
|
3 |
+
WORKDIR /code
|
4 |
|
5 |
+
COPY ./requirements.txt /code/requirements.txt
|
|
|
6 |
|
7 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
8 |
|
|
|
|
|
|
|
|
|
|
|
9 |
COPY . .
|
10 |
|
11 |
+
# RUN chown -R $(id -u):$(id -g) /code/archivos
|
12 |
+
RUN chmod -R a+w /code/archivos
|
13 |
+
|
14 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|