Skip to content

Commit

Permalink
flat docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Chara White committed Jun 10, 2024
1 parent efbae1d commit 03ce405
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,22 @@ HOMEPAGE="https://app.getgrass.io/" \
EXTRA_CHROME_OPTS="" \
EXTRA_COMMAND="exit 0"

COPY assets/ /

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories && \
apk update && \
apk add --no-cache tzdata ca-certificates supervisor curl wget openssl bash sed unzip xvfb x11vnc websockify openbox chromium nss alsa-lib font-noto font-noto-cjk openssh sshpass jq && \
# noVNC SSL certificate
openssl req -new -newkey rsa:4096 -days 36500 -nodes -x509 -subj "/C=IN/O=Dis/CN=www.google.com" -keyout /etc/ssl/novnc.key -out /etc/ssl/novnc.cert > /dev/null 2>&1 && \
# TimeZone
cp /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone

COPY assets/ /

echo $TZ > /etc/timezone && \
# get grass extension
RUN sh /scripts/getgrass.sh

sh /scripts/getgrass.sh && \
# Wipe Temp Files
# Don't delete curl,wget,jq,unzip as they are used in scripts
# keep ssh, sshpass for ssh tunneling(user custom usage)
RUN apk del openssl build-base && \
apk del openssl build-base && \
rm -rf /var/cache/apk/* /tmp/* /extension

ENTRYPOINT ["supervisord", "-l", "/var/log/supervisord.log", "-c"]
Expand Down

0 comments on commit 03ce405

Please sign in to comment.