Skip to content

Commit

Permalink
Update Dockerfile.light.hub
Browse files Browse the repository at this point in the history
  • Loading branch information
vcastellm authored Dec 12, 2023
1 parent 0a605bf commit 5e4d7a9
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions Dockerfile.light.hub
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
# syntax=docker/dockerfile:1.2
FROM alpine:3.12
LABEL maintainer="Victor Castell <victor@victorcastell.com>"
ARG TARGETPLATFORM
FROM alpine:3.19
LABEL maintainer="Victor Castell <0x@vcastellm.xyz>"

RUN set -x \
&& buildDeps='bash ca-certificates openssl tzdata' \
&& apk add --update $buildDeps \
&& rm -rf /var/cache/apk/* \
&& mkdir -p /opt/local/dkron
&& apk add --no-cache --update $buildDeps

EXPOSE 8080 8946

ENV SHELL /bin/bash
WORKDIR /opt/local/dkron
COPY dkron /usr/local/bin/

RUN --mount=target=/build cp /build/dist/dkron_$(echo ${TARGETPLATFORM} | tr '/' '_')/dkron .

ENTRYPOINT ["/opt/local/dkron/dkron"]
ENTRYPOINT ["/usr/local/bin/dkron"]

CMD ["--help"]

0 comments on commit 5e4d7a9

Please sign in to comment.