Skip to content

Commit

Permalink
Eventsbuildingblock dockerfile alpine (#513)
Browse files Browse the repository at this point in the history
* fix docker vulnerability

* Update eventservice/Dockerfile

* Update CHANGELOG.md

Co-authored-by: Sandeep Puthanveetil Satheesan <[email protected]>
  • Loading branch information
bingzhang and sandeep-ps authored Jul 24, 2020
1 parent 079c924 commit b417112
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- Docker image vulnerabilities in Authentication Building Block. [#499](https://github.com/rokwire/rokwire-building-blocks-api/issues/499)
- Docker image vulnerabilities in Events Building Block. [#484](https://github.com/rokwire/rokwire-building-blocks-api/issues/484)

## [1.6.0] - 2020-07-14
- Add Health Building Block APIs documentation. [#468](https://github.com/rokwire/rokwire-building-blocks-api/issues/468)
Expand Down
11 changes: 9 additions & 2 deletions eventservice/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3
FROM python:3-alpine3.11

LABEL maintainer="[email protected]"

Expand All @@ -8,7 +8,14 @@ WORKDIR /app
COPY eventservice/events.yaml /app/
COPY eventservice /app/eventservice/
COPY lib /lib/
RUN pip install -r /app/eventservice/requirements.txt


RUN apk --update add python3 py3-pip openssl ca-certificates py3-openssl && \
apk --update add --virtual build-dependencies libffi-dev openssl-dev python3-dev py3-pip build-base && \
pip install --upgrade pip && \
pip install -r /app/eventservice/requirements.txt --no-cache-dir && \
apk del build-dependencies


VOLUME /var/cache/app
WORKDIR /app/eventservice/api
Expand Down

0 comments on commit b417112

Please sign in to comment.