Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/charleszlu/murmur-info.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcharleszlu <c4planted@gmail.com>2019-05-12 14:53:02 +0300
committercharleszlu <c4planted@gmail.com>2019-05-12 14:53:02 +0300
commit5b6559bf30b7d92ab50cf2abd48259d60f75f601 (patch)
tree8dde1c09c64f9b5257bc8ab9c767c7529a6ef950 /Dockerfile
parent5268c9c6fc43feb48cba51382e341c987da0c761 (diff)
Updated to python 3, customised and dockerised.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile40
1 files changed, 40 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..5fd5435
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,40 @@
+FROM python:3.7-alpine
+
+# zeroc-ice
+ARG ICE_VERSION=3.7.2
+RUN set -ex \
+ && apk add --no-cache \
+ libstdc++ \
+ openssl-dev \
+ && apk add --no-cache --virtual .build-deps \
+ bzip2-dev \
+ g++ \
+ && pip install --global-option=build_ext --global-option="-D__USE_UNIX98" zeroc-ice==${ICE_VERSION} \
+ && apk del .build-deps \
+ && find /usr/local -depth \
+ \( \
+ \( -type d -a \( -name test -o -name tests \) \) \
+ -o \
+ \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
+ \) -exec rm -rf '{}' +;
+
+# SSH server and bash
+RUN apk --update add --upgrade --no-cache openssh bash
+
+COPY entrypoint.sh /entrypoint.sh
+COPY Murmur.ice /murmur-info/Murmur.ice
+COPY murmur-info.py /murmur-info/murmur-info.py
+
+RUN chmod +x /entrypoint.sh \
+ && mkdir -p /root/.ssh \
+ && rm -rf /var/cache/apk/* /tmp/*
+
+ENV OPENSSH_VERSION=${OPENSSH_VERSION} \
+ ROOT_PASSWORD=root \
+ KEYPAIR_LOGIN=false
+
+VOLUME ["/etc/ssh"]
+
+EXPOSE 22
+
+ENTRYPOINT ["/entrypoint.sh"]