Skip to content

Commit 4543f10

Browse files
authored
fix: Fixed docker build (antonbabenko#288)
1 parent 6a064b1 commit 4543f10

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
ARG TAG=3.9.7-alpine3.14
22
FROM python:${TAG} as builder
33

4+
ENV PYTHONUNBUFFERED 1
5+
46
WORKDIR /bin_dir
57

68
RUN apk add --no-cache \
@@ -57,8 +59,10 @@ RUN if [ "$INSTALL_ALL" != "false" ]; then \
5759
RUN . /.env && \
5860
if [ "$CHECKOV_VERSION" != "false" ]; then \
5961
( \
62+
apk add --no-cache gcc libffi-dev musl-dev; \
6063
[ "$CHECKOV_VERSION" = "latest" ] && pip3 install --no-cache-dir checkov \
61-
|| pip3 install --no-cache-dir checkov==${CHECKOV_VERSION} \
64+
|| pip3 install --no-cache-dir checkov==${CHECKOV_VERSION}; \
65+
apk del gcc libffi-dev musl-dev \
6266
) \
6367
; fi
6468

0 commit comments

Comments
 (0)