forked from ComputerScienceHouse/profiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (14 loc) · 665 Bytes
/
Dockerfile
File metadata and controls
24 lines (14 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.9-slim-buster
MAINTAINER Galen Guyer <galen@galenguyer.com>
RUN ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
RUN apt-get -yq update && \
apt-get -yq --no-install-recommends install gcc libsasl2-dev libldap2-dev libssl-dev git && \
apt-get -yq clean all
RUN mkdir /opt/profiles
WORKDIR /opt/profiles
RUN pip install --upgrade pip
COPY requirements.txt /opt/profiles
RUN pip install -r requirements.txt
COPY . /opt/profiles
RUN git config --system --add safe.directory '*' # This is also some OKD shit.
ENTRYPOINT ["ddtrace-run", "gunicorn", "profiles:app", "--bind=0.0.0.0:8080", "--access-logfile=-", "--timeout=600"]