-
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.
Merge pull request #51 from virtUOS/container-pip-install
Install binary in container
- Loading branch information
Showing
2 changed files
with
10 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
FROM python:3.12-slim | ||
EXPOSE 8000 | ||
|
||
FROM python:3.12-slim as build | ||
COPY . /occameracontrol | ||
WORKDIR /occameracontrol | ||
|
||
RUN pip install --no-cache-dir -r /occameracontrol/requirements.txt | ||
FROM python:3.12-slim | ||
EXPOSE 8000 | ||
RUN --mount=type=bind,from=build,source=/occameracontrol,target=/occameracontrol \ | ||
--mount=type=tmpfs,destination=/tmp \ | ||
cp -r /occameracontrol /tmp \ | ||
&& pip install --no-cache-dir /tmp/occameracontrol \ | ||
&& cp /occameracontrol/camera-control.yml /etc/camera-control.yml | ||
|
||
USER nobody | ||
ENTRYPOINT [ "python", "-m", "occameracontrol"] | ||
ENTRYPOINT [ "opencast-camera-control" ] |
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