-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (34 loc) · 1.25 KB
/
Copy pathDockerfile
File metadata and controls
44 lines (34 loc) · 1.25 KB
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
FROM debian:sid-slim
LABEL org.opencontainers.image.source="https://github.com/stephanlensky/swayvnc-chrome"
ARG USER=chrome-user
ARG PUID=1000
ARG PGID=1000
ARG RENDER_GROUP_GID=107
ENV DOCKER_USER=$USER
ENV PUID=$PUID
ENV PGID=$PGID
USER root
RUN groupadd -g $PGID $USER
RUN groupadd -g $RENDER_GROUP_GID docker-render
RUN useradd -ms /bin/bash -u $PUID -g $PGID $USER
RUN usermod -aG docker-render $USER
RUN apt-get update
# Install sway/wayvnc and dependencies
RUN apt-get install -y --no-install-recommends \
sway wayvnc openssh-client openssl curl ca-certificates
# Install Chrome
RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& apt-get install -y ./google-chrome-stable_current_amd64.deb \
&& rm google-chrome-stable_current_amd64.deb
# Clean up apt cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Copy sway/wayvnc configs
COPY --chown=$USER:$USER sway/config /home/$USER/.config/sway/config
COPY --chown=$USER:$USER wayvnc/config /home/$USER/.config/wayvnc/config
# Make directory for wayvnc certs
RUN mkdir /certs
RUN chown -R $USER:$USER /certs
# Copy and set the entrypoint script
COPY --chown=$USER:$USER entrypoint.sh /
COPY --chown=$USER:$USER entrypoint_user.sh /
ENTRYPOINT ["/entrypoint.sh"]