| RUN /bin/sh -c cp "$(readlink -f /etc/passwd)" /etc/passwd.real && rm /etc/passwd && mv /etc/passwd.real /etc/passwd && if ! grep -q '^root:' /etc/passwd; then echo "root:x:0:0:root:/root:/bin/sh" >> /etc/passwd; fi && cp "$(readlink -f /etc/group)" /etc/group.real && rm /etc/group && mv /etc/group.real /etc/group && if ! grep -q '^root:' /etc/group; then echo "root:x:0:" >> /etc/group; fi && rm -rf /homeless-shelter # buildkit |
| RUN /bin/sh -c echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf && echo "trusted-users = root" >> /etc/nix/nix.conf # buildkit |
| RUN /bin/sh -c nix-env -iA nixpkgs.openssh nixpkgs.supercronic nixpkgs.harmonia nixpkgs.webhook nixpkgs.curl # buildkit |
| COPY harmonia.toml /etc/harmonia.toml # buildkit |
| COPY entrypoint.sh /entrypoint.sh # buildkit |
| COPY build.sh /build.sh # buildkit |
| COPY webhook-trigger.sh /webhook-trigger.sh # buildkit |
| COPY crontab /crontab # buildkit |
| RUN /bin/sh -c chmod +x /entrypoint.sh /build.sh /webhook-trigger.sh # buildkit |
| EXPOSE [5000/tcp] |
| EXPOSE [9000/tcp] |
| ENTRYPOINT ["/entrypoint.sh"] |