-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
30 lines (22 loc) · 887 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM python:3.8.13-slim
ENV WORKDIR /home/app
WORKDIR $WORKDIR
RUN apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y apt-utils \
&& apt-get install --no-install-recommends --no-install-suggests -y gcc bzip2 git curl nginx libpq-dev gettext \
libgdal-dev python3-cffi python3-gdal vim
RUN apt-get install make
RUN pip install -U pip==21.2.2 setuptools==57.4.0
RUN pip install poetry==1.2.2
RUN pip install gunicorn==19.9.0
RUN pip install gevent==21.12.0
RUN pip install psycopg2-binary
RUN apt-get install -y libjpeg-dev libgpgme-dev linux-libc-dev musl-dev libffi-dev libssl-dev
ENV LIBRARY_PATH=/lib:/usr/lib
COPY pyproject.toml pyproject.toml
COPY poetry.lock poetry.lock
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi
COPY . .
RUN chmod +x ./entrypoint.sh
ENTRYPOINT [ "./entrypoint.sh" ]