Skip to content

Commit 7b48ed4

Browse files
committed
[feature] Switch docker to alpine linux, use tini
1 parent 3c3c5bb commit 7b48ed4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
FROM python:slim
1+
FROM python:alpine
22

33
# Copy only setup.py to utilize build cache
44
WORKDIR /home
55
COPY setup.py README.md ./
6-
RUN pip3 install .
6+
RUN apk add --no-cache gcc tini libc-dev \
7+
&& pip3 install . \
8+
&& apk del gcc libc-dev
79

810
# Bring over the code and reinstall
911
COPY . .
1012
RUN pip3 install --no-deps .
1113

12-
ENTRYPOINT ["kobodl"]
14+
ENTRYPOINT ["/sbin/tini", "--", "kobodl"]

0 commit comments

Comments
 (0)