Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit b26e647

Browse files
committed
Reduced the size of processor image
Instead of using python3 full image, switched to python:3.7-slim-buster.
1 parent cb7c8c3 commit b26e647

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

CloudKitty/processor/Dockerfile

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
1-
FROM python:3.7-buster
1+
FROM python:3.7-slim-buster
22

3-
RUN pip install cloudkitty PyMySQL
3+
RUN apt-get update \
4+
&& apt-get install --no-install-recommends -y \
5+
gcc \
6+
python3-dev \
7+
&& pip install cloudkitty PyMySQL \
8+
&& mkdir \
9+
/etc/cloudkitty \
10+
/etc/cloudkitty-config \
11+
&& apt-get purge -y \
12+
gcc \
13+
python3-dev \
14+
&& apt-get clean -y \
15+
&& rm -rf /var/cache/apt \
16+
&& rm -rf /var/lib/apt/lists/* \
17+
&& mkdir /etc/cloudkitty
418

519
CMD [ "cloudkitty-processor" ]

0 commit comments

Comments
 (0)