-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (30 loc) · 1.23 KB
/
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
40
41
42
43
44
FROM ghcr.io/osgeo/gdal:ubuntu-full-3.8.5
RUN chmod +rwx /etc/ssl/openssl.cnf
RUN sed -i 's/TLSv1.2/TLSv1/g' /etc/ssl/openssl.cnf
RUN sed -i 's/SECLEVEL=2/SECLEVEL=1/g' /etc/ssl/openssl.cnf
WORKDIR /app
COPY . .
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get update -y
RUN apt-get install -y --no-install-recommends \
python3-pip \
&& \
apt-get clean
RUN apt-get install -y --no-install-recommends \
unixodbc-dev \
&& \
apt-get clean
RUN apt-get install -y --no-install-recommends \
gnupg2 \
lsb-release \
&& \
apt-get clean
RUN apt reinstall ca-certificates -y
RUN curl -s https://packages.microsoft.com/keys/microsoft.asc | tee /etc/apt/trusted.gpg.d/microsoft.asc
RUN curl -s https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg
RUN curl -s https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | tee /etc/apt/sources.list.d/mssql-release.list
RUN apt-get update && apt install -y apt-utils
RUN ACCEPT_EULA=Y apt-get install -y --no-install-recommends \
msodbcsql17 && apt-get clean
RUN pip install .[cloud-run]
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 cloudb.server:app