that work

This commit is contained in:
Adrien Audebert
2024-07-16 18:18:41 +02:00
parent 614da05eab
commit 08493a1eef
7 changed files with 54 additions and 25 deletions

View File

@@ -1,7 +1,22 @@
FROM python:3.8
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 .
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
ENTRYPOINT ["tail", "-f", "/dev/null"]
CMD ["venv/bin/python", "manage.py", "runserver", "0.0.0.0:8000"]