Skip to content
Snippets Groups Projects
Select Git revision
  • a0bd8f7756b6e96ced2a4b5a27cff0639b507a06
  • main default
2 results

Dockerfile.back.alpine

Blame
  • 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