Dockerfile

 1FROM alpine:latest
 2
 3RUN apk update && apk add --update nfs-utils git && rm -rf /var/cache/apk/*
 4
 5COPY smoothie /usr/local/bin/smoothie
 6
 7# Create directories
 8WORKDIR /smoothie
 9# Expose data volume
10VOLUME /smoothie
11
12# Environment variables
13ENV SMOOTHIE_KEY_PATH "/smoothie/ssh/smoothie_server_ed25519"
14ENV SMOOTHIE_REPO_KEYS_PATH "/smoothie/ssh/smoothie_git_authorized_keys"
15ENV SMOOTHIE_REPO_PATH "/smoothie/repos"
16
17# Expose ports
18# SSH
19EXPOSE 23231/tcp
20
21# Set the default command
22ENTRYPOINT [ "/usr/local/bin/smoothie" ]