This repository has been archived by the owner on Nov 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile-plus-profile
60 lines (48 loc) · 1.79 KB
/
Dockerfile-plus-profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# ./hooks/build dev-profile
# ./hooks/test dev-profile
### Example: Build and test 'dev' tag locally like
### ./hooks/build dev-profile
### ./hooks/test dev-profile
### or with additional arguments
### ./hooks/build dev-profile --no-cache
### ./hooks/test dev-profile
### or using the utility
### ./utils/util-hdx.sh Dockerfile 3
### ./utils/util-hdx.sh Dockerfile 4
### The last output line should be '+ exit 0'
### If '+ exit 1' then adjust the version sticker
### variables in script './hooks/env'
ARG BASETAG=latest
FROM accetto/ubuntu-vnc-xfce-firefox-plus:${BASETAG}
### Arguments can be provided during build
ARG ARG_MOZ_FORCE_DISABLE_E10S
ARG ARG_REFRESHED_AT
ARG ARG_VCS_REF
ARG ARG_VERSION_STICKER
ARG ARG_VNC_BLACKLIST_THRESHOLD
ARG ARG_VNC_BLACKLIST_TIMEOUT
ARG ARG_VNC_RESOLUTION
LABEL \
any.accetto.description="Headless Ubuntu VNC/noVNC container with Xfce desktop and Firefox with profile" \
any.accetto.display-name="Headless Ubuntu/Xfce VNC/noVNC container with Firefox profile" \
version-sticker="${ARG_VERSION_STICKER}" \
org.label-schema.vcs-ref="${ARG_VCS_REF}" \
org.label-schema.vcs-url="https://github.com/accetto/ubuntu-vnc-xfce-firefox-plus"
ENV \
MOZ_FORCE_DISABLE_E10S=${ARG_MOZ_FORCE_DISABLE_E10S:+1} \
REFRESHED_AT=${ARG_REFRESHED_AT} \
VERSION_STICKER=${ARG_VERSION_STICKER} \
VNC_BLACKLIST_THRESHOLD=${ARG_VNC_BLACKLIST_THRESHOLD:-20} \
VNC_BLACKLIST_TIMEOUT=${ARG_VNC_BLACKLIST_TIMEOUT:-0} \
VNC_RESOLUTION=${ARG_VNC_RESOLUTION:-1024x768}
### Be sure to use root user
USER 0
WORKDIR ${HOME}
### Copy pre-configured Firefox profile
COPY [ "./src/firefox/profile/", "./.mozilla/" ]
### Change owner
RUN chown -R ${VNC_USER} ./.mozilla
### Switch to the non-root user
USER ${VNC_USER}
### Issue #7 (base): Mitigating problems with foreground mode
WORKDIR ${STARTUPDIR}