-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (31 loc) · 983 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
31
32
33
34
35
36
FROM lsiobase/mono:LTS
# set environment variables
ARG DEBIAN_FRONTEND="noninteractive"
ENV PATH="/opt/screenconnect/App_Runtime/bin:${PATH}" \
MONO_PATH="/opt/screenconnect/App_Runtime/lib" \
MONO_CFG_DIR="/opt/screenconnect/App_Runtime/etc" \
XDG_CONFIG_HOME="/opt/screenconnect/App_Runtime/etc" \
MONO_XMLSERIALIZER_THS=no
RUN \
if [ ! -f "/opt/screenconnect/web.config" ]; then \
echo "**** Downloading ScreenConnect ****"; \
curl -o \
/tmp/ScreenConnect_Release.tar.gz -L \
"https://www.screenconnect.com/Download?Action=DownloadLatest&Platform=Linux&PreRelease=false"; \
echo "**** Extracting ScreenConnect ****"; \
tar xf \
/tmp/ScreenConnect_Release.tar.gz -C \
/tmp --strip-components=1; \
echo "**** Installing ScreenConnect ****"; \
echo -e "\n\n" | /tmp/install.sh; \
fi && \
echo "**** cleanup ****" && \
apt-get clean && \
rm -rf \
/tmp/* \
/var/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 8040 8041
VOLUME /opt/screenconnect