All checks were successful
Build and Push Docker Image / build (push) Successful in 46s
21 lines
398 B
Docker
21 lines
398 B
Docker
FROM python:3.11
|
|
|
|
# set environment variables
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
WORKDIR /app
|
|
|
|
# install python dependencies
|
|
COPY requirements.txt /app/
|
|
RUN pip install --upgrade pip
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . /app/
|
|
|
|
# running migrations
|
|
RUN python manage.py migrate
|
|
|
|
# gunicorn
|
|
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "core.wsgi:application"]
|