forked from mfdz/amarillo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (28 loc) · 932 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
31
32
33
34
35
36
FROM tiangolo/uvicorn-gunicorn:python3.9-slim
LABEL maintainer="[email protected]"
WORKDIR /app
RUN \
apt update \
&& apt install -y \
# GDAL headers are required for fiona, which is required for geopandas.
# Also gcc is used to compile C++ code.
libgdal-dev g++ \
# libspatialindex is required for rtree.
libspatialindex-dev \
# Remove package index obtained by `apt update`.
&& rm -rf /var/lib/apt/lists/*
ENV ADMIN_TOKEN=''
ENV RIDE2GO_TOKEN=''
EXPOSE 80
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
COPY ./app /app/app
COPY enhancer.py /app
COPY prestart.sh /app
COPY ./static /app/static
COPY ./templates /app/templates
COPY config /app
COPY logging.conf /app
COPY ./conf /app/conf
# This image inherits uvicorn-gunicorn's CMD. If you'd like to start uvicorn, use this instead
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]