-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
4 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 |
---|---|---|
|
@@ -4,9 +4,10 @@ LABEL maintainer="Björn Busse <[email protected]>" | |
LABEL org.opencontainers.image.source https://github.com/bbusse/swayvnc-firefox | ||
Check warning on line 4 in Containerfile GitHub Actions / container-build-push / build-and-push-containerLegacy key/value format with whitespace separator should not be used
|
||
|
||
ENV ARCH="x86_64" \ | ||
USER="firefox-user" \ | ||
USER="swayvnc" \ | ||
APK_ADD="libc-dev libffi-dev libxkbcommon-dev gcc geckodriver@testing git python3 python3-dev py3-pip py3-wheel firefox" \ | ||
APK_DEL="" | ||
APK_DEL="" \ | ||
PATH_VENV="/home/swayvnc/venv/" | ||
|
||
USER root | ||
|
||
|
@@ -42,8 +43,12 @@ RUN addgroup -S $USER && adduser -S $USER -G $USER \ | |
|
||
USER $USER | ||
|
||
RUN pip3 install --user -r /tmp/requirements_controller.txt | ||
RUN pip3 install --user -r /tmp/requirements_webdriver.txt | ||
RUN mkdir -p ${PATH_VENV} && \ | ||
python3 -m venv /home/swayvnc/venv && \ | ||
. ${PATH_VENV}/bin/activate && \ | ||
pip3 install -r /tmp/requirements_controller.txt && \ | ||
pip3 install -r /tmp/requirements_webdriver.txt && \ | ||
deactivate | ||
|
||
COPY entrypoint.sh / | ||
ENTRYPOINT ["/entrypoint.sh"] |