We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c3c5bb commit 7b48ed4Copy full SHA for 7b48ed4
Dockerfile
@@ -1,12 +1,14 @@
1
-FROM python:slim
+FROM python:alpine
2
3
# Copy only setup.py to utilize build cache
4
WORKDIR /home
5
COPY setup.py README.md ./
6
-RUN pip3 install .
+RUN apk add --no-cache gcc tini libc-dev \
7
+ && pip3 install . \
8
+ && apk del gcc libc-dev
9
10
# Bring over the code and reinstall
11
COPY . .
12
RUN pip3 install --no-deps .
13
-ENTRYPOINT ["kobodl"]
14
+ENTRYPOINT ["/sbin/tini", "--", "kobodl"]
0 commit comments