Add initial Dockerfile
This commit is contained in:
parent
73bf95fe56
commit
27d15a5ddf
1 changed files with 18 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
FROM python:3.10.0-alpine3.15
|
||||||
|
|
||||||
|
RUN apk add --update --no-cache\
|
||||||
|
build-base jpeg-dev zlib-dev libjpeg\
|
||||||
|
gettext\
|
||||||
|
py3-lxml\
|
||||||
|
openldap-dev\
|
||||||
|
python3-dev\
|
||||||
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
RUN echo 'INPUT ( libldap.so )' > /usr/lib/libldap_r.so
|
||||||
|
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
COPY requirements.txt ./
|
||||||
|
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
COPY . .
|
Loading…
Reference in a new issue