-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (23 loc) · 944 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 alpine:3.18@sha256:02bb6f428431fbc2809c5d1b41eab5a68350194fb508869a33cb1af4444c9b11
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
RUN apk add --update --no-cache \
curl \
iputils \
python3 \
shellinabox
COPY docker-entrypoint.sh /usr/bin
COPY dark.css /etc/shellinabox/dark.css
RUN addgroup -g 1001 deadman \
&& adduser -D -G deadman -u 1001 deadman
ENV DEADMAN_VERSION=d35b8280deb41d9973070e6555f15a6470e0407e
ENV DEADMAN_CHECKSUM=8aba191db395caf5317cc4ff9a37aa1b45ff24bbb49a0ba42cb98c0479680b23
RUN cd /home/deadman \
&& curl -fSsL "https://github.com/upa/deadman/archive/${DEADMAN_VERSION}.zip" \
-o deadman.zip \
&& echo "${DEADMAN_CHECKSUM} deadman.zip" | sha256sum -c - \
&& unzip "deadman.zip" \
&& rm -f "deadman.zip" \
&& mv "deadman-${DEADMAN_VERSION}" "deadman"
CMD ["/usr/bin/docker-entrypoint.sh"]
EXPOSE 4200
VOLUME /config