Allow setting username and id

This commit is contained in:
2024-12-15 21:31:19 +01:00
parent 9b2556f49a
commit b7ce160dc3
5 changed files with 68 additions and 55 deletions

View File

@@ -57,8 +57,3 @@ COPY entrypoint.sh /opt/noVNC/entrypoint.sh
ENTRYPOINT ["/opt/noVNC/entrypoint.sh"]
EXPOSE 8080
RUN adduser --home /home/novnc --shell /bin/bash --system --disabled-password novnc \
&& echo "novnc ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER novnc
WORKDIR /home/novnc