mirror of
https://github.com/AudebertAdrien/ft_transcendence.git
synced 2026-11-09 17:37:08 +01:00
modified base files
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -7,20 +7,12 @@ ENV PYTHONUNBUFFERED 1
|
||||
WORKDIR /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 . .
|
||||
|
||||
# Collect static files during the build
|
||||
RUN venv/bin/python manage.py collectstatic --noinput
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
# CMD ["venv/bin/python", "manage.py", "runserver", "0.0.0.0:80"]
|
||||
CMD ["daphne", "-b", "0.0.0.0", "-p", "80", "pong.asgi:application"]
|
||||
Reference in New Issue
Block a user