modified base files

This commit is contained in:
CHIBOUB Chakib
2024-07-22 18:07:36 +02:00
7 changed files with 138 additions and 47 deletions

View File

@@ -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"]