This commit is contained in:
2022-05-17 01:56:44 +03:00
commit 3a9b8c8468
117 changed files with 7175 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
FROM golang:1.17 as go
COPY choose /choose
COPY rproxy /rproxy
RUN \
apt-get update && \
apt-get install -y upx-ucl && \
cd /choose && \
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" && \
upx /choose/choose && \
cd /rproxy && \
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" && \
upx /rproxy/rproxy
FROM ubuntu:18.04
COPY --from=go /choose/choose /usr/local/bin/
COPY --from=go /rproxy/rproxy /usr/local/bin/
RUN \
apt update && \
apt -y install xvfb x11-utils x11vnc tigervnc-common tigervnc-viewer
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]