chartManD commited on
Commit
438791e
·
1 Parent(s): 864916c

Config Dockerfile, cambiar imagen de debian a python

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -1,12 +1,12 @@
1
- FROM ubuntu:24.04
2
 
3
- RUN export DEBIAN_FRONTEND=noninteractive
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
- RUN python3 manage.py migrate
28
- RUN python3 manage.py tailwind build
29
- RUN python3 manage.py collectstatic --noinput
 
 
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