mirror of
https://git.myvelabs.com/novnc/alpine.git
synced 2025-12-17 21:36: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
|
||||
USER root
|
||||
|
||||
# Build ARG for additional pacman packages to install (eg, openssh)
|
||||
# Build ARG for additional packages to install (eg, openssh)
|
||||
ARG addpkg
|
||||
|
||||
# Build ARG: use "root" for debugging
|
||||
ARG debug
|
||||
|
||||
# Copy app folder
|
||||
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/
|
||||
|
||||
# Default environment
|
||||
USER user
|
||||
USER ${debug:-user}
|
||||
WORKDIR /home/user
|
||||
ENV HOME=/home/user
|
||||
ENV DISPLAY=:0
|
||||
|
|
@ -41,4 +44,4 @@ ENV PS1="[\u@\h \W \$?]\$ "
|
|||
EXPOSE 6900
|
||||
|
||||
# Docker entrypoint
|
||||
ENTRYPOINT ["/app/entrypoint"]
|
||||
ENTRYPOINT ["/app/entrypoint"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue