Skip to content

Commit

Permalink
fix trivy scan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pgvishnuram committed Jan 28, 2022
1 parent b3ba1e2 commit 2f62407
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ RUN apk update && apk add git
RUN go get github.com/jsha/minica


FROM python:3.8.12-alpine3.15
FROM python:3.9-alpine3.15

# fix libexpat
RUN apk update \
&& apk add --no-cache expat

# Upgrade pip
RUN pip install --upgrade pip
Expand All @@ -15,17 +19,19 @@ RUN addgroup -g 1000 -S certgenerator \
&& adduser -u 1000 -S certgenerator -G certgenerator

USER certgenerator

WORKDIR /home/certgenerator

COPY --from=builder /go/bin/minica /usr/bin/minica


COPY --chown=certgenerator:certgenerator . .

RUN pip install --user --no-cache-dir .

ENV PATH="/home/certgenerator/.local/bin:${PATH}"

ENTRYPOINT ["certgenerator"]

CMD ["--help"]


Expand Down

0 comments on commit 2f62407

Please sign in to comment.