Spaces:
Build error
Build error
Config Dockerfile, cambiar imagen de debian a python
Browse files- Dockerfile +8 -7
Dockerfile
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
-
RUN export DEBIAN_FRONTEND=
|
| 4 |
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
build-essential \
|
| 7 |
libpq-dev \
|
| 8 |
python3 \
|
| 9 |
-
python3-dev \
|
| 10 |
python3-mysqldb \
|
| 11 |
python3.12-venv \
|
| 12 |
pkg-config \
|
|
@@ -21,12 +21,13 @@ ENV PATH="/opt/venv/bin:$PATH"
|
|
| 21 |
RUN ls -lah
|
| 22 |
|
| 23 |
RUN python3 -m pip install --upgrade pip
|
| 24 |
-
|
| 25 |
RUN python3 -m pip install -r requirements.txt
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
RUN python3 manage.py
|
|
|
|
|
|
|
| 30 |
|
| 31 |
RUN python3 manage.py shell < create_superuser.py
|
| 32 |
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
|
| 3 |
+
# RUN export DEBIAN_FRONTEND=noninteractivek
|
| 4 |
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
build-essential \
|
| 7 |
libpq-dev \
|
| 8 |
python3 \
|
| 9 |
+
# python3-dev \
|
| 10 |
python3-mysqldb \
|
| 11 |
python3.12-venv \
|
| 12 |
pkg-config \
|
|
|
|
| 21 |
RUN ls -lah
|
| 22 |
|
| 23 |
RUN python3 -m pip install --upgrade pip
|
|
|
|
| 24 |
RUN python3 -m pip install -r requirements.txt
|
| 25 |
|
| 26 |
+
COPY . .
|
| 27 |
+
|
| 28 |
+
# RUN python3 manage.py migrate
|
| 29 |
+
# RUN python3 manage.py tailwind build
|
| 30 |
+
# RUN python3 manage.py collectstatic --noinput
|
| 31 |
|
| 32 |
RUN python3 manage.py shell < create_superuser.py
|
| 33 |
|