We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b36d65 commit 680d703Copy full SHA for 680d703
Dockerfile
@@ -9,7 +9,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
9
WORKDIR /app
10
COPY . .
11
12
-RUN python -m build
+RUN python -m build && \
13
+ pip install dist/*.tar.gz --prefix=/install
14
15
# runtime stage
16
FROM python:3.11-slim AS runtime
@@ -19,8 +20,8 @@ ENV PYTHONUNBUFFERED=1 \
19
20
PYTHONDONTWRITEBYTECODE=1 \
21
PIP_NO_CACHE_DIR=1
22
-COPY --from=builder /app/dist/*.tar.gz /tmp/
23
-RUN pip install /tmp/*.tar.gz && rm -rf /tmp/*
+# copy installed Python libs + CLI scripts
24
+COPY --from=builder /install /usr/local
25
26
COPY etc/*.json etc/*.yaml /etc/villas/controller/
27
COPY villas-controller.service /etc/systemd/system/
0 commit comments