mirror of
https://git.myvelabs.com/novnc/alpine.git
synced 2025-12-18 00:06:21 +00:00
Update base/Dockerfile
This commit is contained in:
parent
2c1b1dceb1
commit
21f498352d
1 changed files with 6 additions and 3 deletions
|
|
@ -2,9 +2,12 @@
|
||||||
FROM alpine:edge
|
FROM alpine:edge
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
# Build ARG for additional pacman packages to install (eg, openssh)
|
# Build ARG for additional packages to install (eg, openssh)
|
||||||
ARG addpkg
|
ARG addpkg
|
||||||
|
|
||||||
|
# Build ARG: use "root" for debugging
|
||||||
|
ARG debug
|
||||||
|
|
||||||
# Copy app folder
|
# Copy app folder
|
||||||
COPY app /app
|
COPY app /app
|
||||||
|
|
||||||
|
|
@ -30,7 +33,7 @@ RUN printf '%s\n' 'https://dl-cdn.alpinelinux.org/alpine/edge/main/' \
|
||||||
&& chown -R user /app /usr/share/novnc/
|
&& chown -R user /app /usr/share/novnc/
|
||||||
|
|
||||||
# Default environment
|
# Default environment
|
||||||
USER user
|
USER ${debug:-user}
|
||||||
WORKDIR /home/user
|
WORKDIR /home/user
|
||||||
ENV HOME=/home/user
|
ENV HOME=/home/user
|
||||||
ENV DISPLAY=:0
|
ENV DISPLAY=:0
|
||||||
|
|
@ -41,4 +44,4 @@ ENV PS1="[\u@\h \W \$?]\$ "
|
||||||
EXPOSE 6900
|
EXPOSE 6900
|
||||||
|
|
||||||
# Docker entrypoint
|
# Docker entrypoint
|
||||||
ENTRYPOINT ["/app/entrypoint"]
|
ENTRYPOINT ["/app/entrypoint"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue