Spaces:
Sleeping
Sleeping
Config Dockerfile, cambio comando a python3
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -11,18 +11,18 @@ WORKDIR /cata_system
|
|
| 11 |
|
| 12 |
COPY requirements.txt .
|
| 13 |
|
| 14 |
-
RUN
|
| 15 |
ENV PATH="/opt/venv/bin:$PATH"
|
| 16 |
RUN ls -lah
|
| 17 |
|
| 18 |
RUN python3 -m pip install --upgrade pip && \
|
| 19 |
python3 -m pip install -r requirements.txt
|
| 20 |
|
| 21 |
-
RUN
|
| 22 |
-
RUN
|
| 23 |
-
RUN
|
| 24 |
|
| 25 |
-
RUN
|
| 26 |
|
| 27 |
EXPOSE 7860
|
| 28 |
|
|
|
|
| 11 |
|
| 12 |
COPY requirements.txt .
|
| 13 |
|
| 14 |
+
RUN python3 -m venv /opt/venv
|
| 15 |
ENV PATH="/opt/venv/bin:$PATH"
|
| 16 |
RUN ls -lah
|
| 17 |
|
| 18 |
RUN python3 -m pip install --upgrade pip && \
|
| 19 |
python3 -m pip install -r requirements.txt
|
| 20 |
|
| 21 |
+
RUN python3 manage.py migrate
|
| 22 |
+
RUN python3 manage.py tailwind build
|
| 23 |
+
RUN python3 manage.py collectstatic --noinput
|
| 24 |
|
| 25 |
+
RUN python3 manage.py shell < create_superuser.py
|
| 26 |
|
| 27 |
EXPOSE 7860
|
| 28 |
|