Skip to content

Commit

Permalink
Update deps and kubeseal binary (#237)
Browse files Browse the repository at this point in the history
* Update deps and kubeseal binary

* Update api image os when building image

* applied suggestions and poetry update

* Fix Dockerfile
  • Loading branch information
Jaydee94 authored Jan 26, 2024
1 parent 657f15a commit d0ff223
Show file tree
Hide file tree
Showing 4 changed files with 306 additions and 338 deletions.
8 changes: 6 additions & 2 deletions Dockerfile.api
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM debian:latest as deps

ARG KUBESEAL_VERSION=0.24.4
ARG KUBESEAL_VERSION=0.24.5
ARG KUBESEAL_ARCH=amd64
ENV KUBESEAL_BINARY=/deps/kubeseal \
PRIVATE_KEY=/dev/null \
Expand Down Expand Up @@ -28,6 +28,10 @@ ARG KUBESEAL_VERSION=${KUBESEAL_VERSION}
RUN adduser --gid 0 --home "${APP_PATH}" --disabled-password app \
&& chmod 0750 "${APP_PATH}"

RUN apt-get update && \
apt-get upgrade -y && \
apt-get clean


USER app

Expand All @@ -45,8 +49,8 @@ COPY api src/

RUN python3 -m venv "${APP_PATH}" && \
. "${APP_PATH}/bin/activate" && \
pip install --upgrade pip && \
pip install --no-cache-dir 'uvicorn' 'wheel' 'setuptools' && \
pip install --no-cache-dir --upgrade 'pip' 'uvicorn' 'wheel' 'setuptools' && \
pip install --no-cache-dir src/ && \
install --mode=755 --group=0 ./src/bin/* "${APP_PATH}/bin/"

Expand Down
Loading

0 comments on commit d0ff223

Please sign in to comment.