-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eventsbuildingblock dockerfile alpine (#513)
* fix docker vulnerability * Update eventservice/Dockerfile * Update CHANGELOG.md Co-authored-by: Sandeep Puthanveetil Satheesan <[email protected]>
- Loading branch information
1 parent
079c924
commit b417112
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]" | ||
|
||
|
@@ -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 | ||
|