sshd docker image for pijul repository storage
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
760 B

  1. ARG ALPINE_VERSION=3.13
  2. FROM alpine:$ALPINE_VERSION AS builder
  3. ARG RUST_VERSION=stable
  4. ARG PIJUL_VERSION="~1.0.0-alpha"
  5. RUN apk add --no-cache rustup \
  6. && rustup-init -yqt "$RUST_VERSION"
  7. RUN apk add --no-cache \
  8. build-base \
  9. clang \
  10. libsodium-dev \
  11. make \
  12. openssl-dev \
  13. xxhash-dev \
  14. zstd-dev
  15. RUN /root/.cargo/bin/cargo install pijul --version "$PIJUL_VERSION"
  16. FROM alpine:$ALPINE_VERSION AS base
  17. LABEL maintainer "Drew Short - https://git.nulloctet.com/warricksothr"
  18. ENTRYPOINT ["/entrypoint.sh"]
  19. EXPOSE 22
  20. COPY --from=builder /root/.cargo/bin/pijul /usr/local/bin/
  21. COPY rootfs /
  22. RUN apk add --no-cache openssh \
  23. && sed -i s/#PermitRootLogin.*/PermitRootLogin\ no/ /etc/ssh/sshd_config \
  24. && echo "root:root" | chpasswd