-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Rockchip3588 monitoring: refined Dockerfile, code refactoring…
… to use shared files
- Loading branch information
1 parent
98488eb
commit cd58b63
Showing
6 changed files
with
42 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# temp stage | ||
FROM python:3.12.2-slim as build | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update -y && apt-get install -y gcc python3-dev | ||
|
||
COPY /hw_monitoring_libraries/requirements.txt . | ||
|
||
RUN pip wheel --no-cache-dir --no-deps --wheel-dir /app/wheels -r requirements.txt | ||
|
||
|
||
# final stage | ||
FROM python:3.12-slim | ||
|
||
COPY ./hw_monitoring_libraries ./hw_monitoring_libraries | ||
|
||
WORKDIR /hw_telemetry | ||
|
||
COPY --from=builder /app/wheels /wheels | ||
COPY --from=builder /app/requirements.txt . | ||
|
||
RUN pip install --no-cache /wheels/* | ||
|
||
COPY ./rockchip3588 ./ | ||
|
||
ENTRYPOINT ["python3", "/hw_telemetry/main.py"] |
This file was deleted.
Oops, something went wrong.
36 changes: 14 additions & 22 deletions
36
...monitoring/rockchip3588/container/main.py → hardware_monitoring/rockchip3588/main.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.