diff options
author | charleszlu <c4planted@gmail.com> | 2019-05-31 16:49:05 +0300 |
---|---|---|
committer | charleszlu <c4planted@gmail.com> | 2019-05-31 16:49:05 +0300 |
commit | ecea35f308a9c8019041b6678d37e019e1de1094 (patch) | |
tree | bd70142e99fe8ab948c7286decc6c4de942605e5 | |
parent | 949e39aa2ae1c2006df21896e91327574b323e3e (diff) |
Update to 3.7.23.7.2
Also building from base alpine
-rw-r--r-- | Dockerfile | 34 |
1 files changed, 26 insertions, 8 deletions
@@ -1,15 +1,34 @@ -FROM goozler/zeroc_ice_python - -RUN apk --update add --upgrade --no-cache openssh bash tzdata - +# 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++ \ + openssl-dev \ + openssh \ + bash \ + tzdata && \ + apk add --no-cache --virtual .build-deps \ + bzip2-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/* +RUN chmod +x /entrypoint.sh \ + && mkdir -p /root/.ssh \ + && rm -rf /var/cache/apk/* /tmp/* ENV ROOT_PASSWORD root ENV KEYPAIR_LOGIN false @@ -20,7 +39,6 @@ ENV MURMUR_ICE_SECRET "" ENV MURMUR_ICE_MSG_SIZE_MAX 65535 ENV EXCLUDE_KEYWORDS "" - VOLUME ["/etc/ssh"] EXPOSE 22 |