This commit is contained in:
Adrien Audebert
2024-07-18 13:55:01 +02:00
parent dafa62612e
commit b5bc219cd6
6 changed files with 81 additions and 29 deletions

View File

@@ -3,7 +3,6 @@ FROM python:3.12.4
WORKDIR /ft_transcendence
RUN apt update && apt upgrade -y
RUN apt install -y vim
COPY requirements.txt .
COPY manage.py .
@@ -12,11 +11,4 @@ RUN python3 -m venv venv
RUN venv/bin/pip3 install --upgrade pip
RUN venv/bin/pip3 install --no-cache-dir -r requirements.txt
COPY . .
#RUN venv/bin/python3 manage.py migrate --noinput
#RUN venv/bin/python manage.py collectstatic --noinput
EXPOSE 8000
CMD ["venv/bin/python", "manage.py", "runserver", "0.0.0.0:8000"]