mirror of
https://github.com/AudebertAdrien/ft_transcendence.git
synced 2026-11-09 17:37:08 +01:00
that work
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user