2025-04-29 23:35:56 +12:00

30 lines
735 B
Docker

FROM --platform=$BUILDPLATFORM alpine:latest AS builder
RUN apk add --no-cache \
bash \
nano
WORKDIR /app
COPY docker/dropshell_alpine/output/dropshell /app/dropshell
RUN /bin/bash -c "mkdir -p /opt/dropshell/templates && mkdir -p /config"
COPY templates /opt/dropshell/templates
COPY src/dropshell-completion.bash /etc/bash_completion.d/
FROM alpine:latest
RUN apk add --no-cache \
bash \
nano
WORKDIR /app
COPY --from=builder /app/dropshell /app/dropshell
COPY --from=builder /opt/dropshell/templates /opt/dropshell/templates
COPY --from=builder /etc/bash_completion.d/dropshell-completion.bash /etc/bash_completion.d/
RUN /app/dropshell init /config
RUN /app/dropshell version
ENTRYPOINT ["/app/dropshell"]