initial django build using docker and gunicorn.
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM python:3.14-alpine
|
||||
|
||||
RUN mkdir /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
COPY requirements.txt /app/
|
||||
COPY gunicorn.conf.py /app/
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY ./quatsh/ /app/
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["gunicorn", "website.wsgi:application"]
|
||||
|
||||
Reference in New Issue
Block a user