Skip to content

Commit caae2b0

Browse files
committed
fix(docker): add pythonpath to Dockerfile
Signed-off-by: Jana Peper <[email protected]>
1 parent cee8512 commit caae2b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ FROM python:3.11-slim-bookworm
22

33
COPY requirements.txt /
44

5+
6+
57
RUN \
68
python3 -m pip install -r requirements.txt && rm -rf ~/.cache && rm requirements.txt
79

@@ -14,5 +16,6 @@ ADD /ex_app/li[b] /ex_app/lib
1416
COPY --chmod=775 healthcheck.sh /
1517

1618
WORKDIR /ex_app/lib
19+
ENV PYTHONPATH="/"
1720
ENTRYPOINT ["python3", "main.py"]
1821
HEALTHCHECK --interval=2s --timeout=2s --retries=300 CMD /healthcheck.sh

0 commit comments

Comments
 (0)