feat: deploy in a docker container

This commit is contained in:
transcaffeine 2021-05-23 12:39:18 +02:00
parent 9962313f31
commit ee64059f84
Signed by: transcaffeine
GPG Key ID: 03624C433676E465
1 changed files with 10 additions and 0 deletions

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM python:3.9-alpine
WORKDIR /opt/self-service
COPY requirements.txt ./
RUN apk add --no-cache build-base openldap-dev python2-dev python3-dev
RUN pip install --no-cache-dir -r requirements.txt
COPY ./src ./src
CMD ["/usr/local/bin/uvicorn", "src.main:app"]