Skip to content

Commit

Permalink
Use --no-cache-dir option for pip installs
Browse files Browse the repository at this point in the history
Update example with image on ghcr.io
  • Loading branch information
meffmadd committed Jul 8, 2024
1 parent bb94cf0 commit 50d62f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/0_minimal/config_server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: minimal-config
namespace: config-server
spec:
image: config-server:latest
imagePullPolicy: Never
image: ghcr.io/tu-wien-datalab/config-server:main
imagePullPolicy: IfNotPresent
containerPort: 80
configMountPath: /var/lib/config-server
2 changes: 1 addition & 1 deletion operator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3.12-alpine

COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN pip install -r requirements.txt --no-cache-dir

COPY operator.py operator.py
CMD kopf run operator.py --verbose
2 changes: 1 addition & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3.12-alpine

COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN pip install -r requirements.txt --no-cache-dir

COPY server.py server.py
CMD python server.py

0 comments on commit 50d62f5

Please sign in to comment.