Skip to content

Commit

Permalink
remove build-deps after build to keep image size small
Browse files Browse the repository at this point in the history
  • Loading branch information
throughnothing committed Sep 6, 2023
1 parent 22217d8 commit c66a2c8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM alpine:3.17

RUN apk add --no-cache py3-pip openssl \
python3-dev openssl-dev libffi-dev musl-dev gcc rust cargo
RUN apk add --no-cache py3-pip openssl

RUN pip install pykmip
RUN apk add --no-cache --virtual build-deps \
python3-dev openssl-dev libffi-dev musl-dev gcc rust cargo && \
pip install pykmip && \
apk del build-deps

RUN mkdir -p /etc/pykmip \
mkdir -p /etc/pykmip/policy \
Expand Down

0 comments on commit c66a2c8

Please sign in to comment.