diff --git a/Dockerfile b/Dockerfile index b6a93ba..3447842 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,10 +4,6 @@ RUN mkdir /app WORKDIR /app -ENV PYTHONDONTWRITEBYTECODE=1 - -ENV PYTHONUNBUFFERED=1 - RUN pip install --upgrade pip COPY requirements.txt /app/ @@ -16,7 +12,6 @@ COPY ./app/ /app/ RUN pip install --no-cache-dir -r requirements.txt - EXPOSE 8000 CMD ["gunicorn", "website.wsgi:application"] diff --git a/compose.yaml b/compose.yaml index ddccc4c..792c9cb 100644 --- a/compose.yaml +++ b/compose.yaml @@ -3,3 +3,7 @@ services: build: . ports: - 8000:8000 + environment: + - PYTHONDONTWRITEBYTECODE=1 + - PYTHONUNBUFFERED=1 + restart: unless-stopped diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml new file mode 100644 index 0000000..a59e57d --- /dev/null +++ b/docker-compose.dev.yml @@ -0,0 +1,5 @@ +services: + web: + volumes: + - ./app:/app +