Select Git revision
Dockerfile.back.alpine
Dockerfile.back.alpine 518 B
FROM python:3.8-alpine3.15
WORKDIR /back/
# Required apk packages for building of mysqlclient and cffi python packages
RUN apk update \
&& apk add --virtual build-deps gcc musl-dev mariadb-dev libffi-dev
COPY requirements.txt /back/
RUN pip install -r requirements.txt
# Remove apk packages that were only necessary at build time
RUN apk del build-deps
COPY ./ /back/
ENTRYPOINT python3 manage.py makemigrations \
&& python3 manage.py migrate \
&& python3 manage.py runserver 0.0.0.0:8000