-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
39 lines (30 loc) · 1008 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
37
38
39
FROM tiangolo/uvicorn-gunicorn:python3.10-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
# set MODULE_NAME explicitly
ENV MODULE_NAME=amarillo.main
COPY ./amarillo /app/amarillo
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", "amarillo.main:app", "--host", "0.0.0.0", "--port", "8000"]