feat: deploy in a docker container
This commit is contained in:
parent
9962313f31
commit
ee64059f84
|
@ -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"]
|
Loading…
Reference in New Issue