-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (23 loc) · 975 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
FROM python:3.9.13-slim-buster as production
WORKDIR /app
# Additional packages to help debug - slim-buster is very streamlined ...
RUN apt-get update && apt-get install -y procps && apt-get install -y vim && apt-get install -y curl
# RUN apt-get install -y build-essential
RUN useradd -m sid
RUN chown -R sid:sid /app
USER sid
ENV PATH="/home/sid/.local/bin:${PATH}"
COPY requirements requirements
RUN pip install --upgrade pip
RUN pip install --no-cache --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org --user -r requirements/prod.txt
COPY logging.conf logging.conf
COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY supervisord_processes /etc/supervisor/conf.d
COPY shell_scripts shell_scripts
COPY *.py ./
COPY printing_solution printing_solution
# DataDog Stuff
ARG PACKAGE_NAME
EXPOSE 7095
ENTRYPOINT ["/bin/bash", "shell_scripts/supervisord_entrypoint.sh"]
CMD ["-c", "/etc/supervisor/supervisord.conf"]