Skip to content

Commit f4400b4

Browse files
committed
Fix container build
There was an error in building container immage as python expect to use venv instead of installing p3exporter to system python. As this container is only for illustrating how it can work we decided to simply add optione `--break-system-packages` to pip command to override the default behavior. We also moved the container manifest to the more general `Containerfile`.
1 parent 03cebcf commit f4400b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile renamed to Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ WORKDIR /usr/src/app
77
COPY . /usr/src/app/
88
RUN apk update && \
99
apk add python3 py3-pip build-base python3-dev linux-headers && \
10-
pip3 install -e . && \
10+
pip3 install --break-system-packages -e . && \
1111
apk del py3-pip build-base python3-dev linux-headers
1212

1313
EXPOSE 5876

0 commit comments

Comments
 (0)