forked from supervisor-com/lens-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 926 Bytes
/
Dockerfile
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
FROM ubuntu:20.04
ARG LENS_VERSION
ENV DISPLAY=:0
ENV PORT=8080
ENV DEBIAN_FRONTEND=noninteractive
COPY --from=mattipaksula/wait-for:sha-2a34cde /wait-for /usr/bin
RUN apt-get update && apt-get install -y \
curl git \
xvfb x11vnc \
libnss3 libglib2.0-0 libgdk-pixbuf2.0-0 libgtk-3-0 libx11-xcb1 libasound2 libxss1 libgbm1 \
&& curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get update && apt-get install -y nodejs
WORKDIR /opt
RUN git clone https://github.com/novnc/websockify-js.git \
&& cd websockify-js/websockify && npm install
RUN curl -LO https://github.com/lensapp/lens/releases/download/v${LENS_VERSION}/Lens-${LENS_VERSION}.AppImage \
&& chmod +x Lens-${LENS_VERSION}.AppImage \
&& ./Lens-${LENS_VERSION}.AppImage --appimage-extract \
&& rm -rf Lens-${LENS_VERSION}.AppImage \
&& mv /opt/squashfs-root /opt/lens
WORKDIR /app
COPY app .
ENTRYPOINT [ "/app/entrypoint.sh" ]