-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (28 loc) · 887 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-slim
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ADD requirements.txt /project/
RUN mkdir -p /project/.aws/
RUN apt-get update && \
apt-get install --yes --no-install-recommends \
build-essential \
python3-distutils \
python3-pip \
&& pip3 install --no-cache-dir -r /project/requirements.txt \
&& apt-get remove --auto-remove --purge --yes \
build-essential \
&& true \
&& apt-get clean --yes \
&& rm -rf \
/tmp/* \
/var/log/apt* \
/var/log/dpkg* \
/var/lib/apt/lists/* \
/var/tmp/*
ADD entry.sh /project/
COPY example_producer/ /project/example_producer/
COPY project_configs/ /project/example_producer/project_configs/
COPY project_libs/ /project/example_producer/project_libs/
COPY helpers/ /project/example_producer/helpers/
WORKDIR /project
ENTRYPOINT ["/project/entry.sh"]