Skip to content

Commit

Permalink
fix: Fixed docker build (antonbabenko#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
sg70 authored Dec 6, 2021
1 parent 6a064b1 commit 4543f10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
ARG TAG=3.9.7-alpine3.14
FROM python:${TAG} as builder

ENV PYTHONUNBUFFERED 1

WORKDIR /bin_dir

RUN apk add --no-cache \
Expand Down Expand Up @@ -57,8 +59,10 @@ RUN if [ "$INSTALL_ALL" != "false" ]; then \
RUN . /.env && \
if [ "$CHECKOV_VERSION" != "false" ]; then \
( \
apk add --no-cache gcc libffi-dev musl-dev; \
[ "$CHECKOV_VERSION" = "latest" ] && pip3 install --no-cache-dir checkov \
|| pip3 install --no-cache-dir checkov==${CHECKOV_VERSION} \
|| pip3 install --no-cache-dir checkov==${CHECKOV_VERSION}; \
apk del gcc libffi-dev musl-dev \
) \
; fi

Expand Down

0 comments on commit 4543f10

Please sign in to comment.