added development yml file for live reload
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -3,3 +3,7 @@ services:
|
||||
build: .
|
||||
ports:
|
||||
- 8000:8000
|
||||
environment:
|
||||
- PYTHONDONTWRITEBYTECODE=1
|
||||
- PYTHONUNBUFFERED=1
|
||||
restart: unless-stopped
|
||||
|
||||
5
docker-compose.dev.yml
Normal file
5
docker-compose.dev.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
services:
|
||||
web:
|
||||
volumes:
|
||||
- ./app:/app
|
||||
|
||||
Reference in New Issue
Block a user