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

Dockerfile - github.com/charleszlu/murmur-info.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b11bdf847334e421b9d6a01363b55afb24dfe579 (plain)
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
37
38
39
40
41
42
43
44
45
# zeroc-ice based on goozler/zeroc_ice_python: https://github.com/goozler/zeroc_ice_python
# openssh server based on hermsi/alpine-sshd: https://github.com/Hermsi1337/docker-sshd
FROM python:3-alpine

ARG ICE_VERSION=3.7.2

RUN apk add --no-cache \
    libstdc++ \
    openssh \
    bash && \
    apk add --no-cache --virtual .build-deps \
    bzip2-dev \
    openssl-dev \
    g++ && \
    pip install --no-cache-dir --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 '{}' +;

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 ROOT_PASSWORD root
ENV KEYPAIR_LOGIN false
ENV MURMUR_ICE_PATH /murmur-info/Murmur.ice
ENV MURMUR_HOST 127.0.0.1
ENV MURMUR_ICE_PORT 6502
ENV MURMUR_ICE_SECRET ""
ENV MURMUR_ICE_MSG_SIZE_MAX 65535
ENV EXCLUDE_KEYWORDS ""

VOLUME ["/etc/ssh"]

EXPOSE 22

ENTRYPOINT ["/entrypoint.sh"]