mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-05-25 01:33:08 +00:00
24 lines
575 B
Plaintext
24 lines
575 B
Plaintext
# This Dockerfile embeds a pre-built binary for the given Linux architecture
|
|
# Binaries are supplied by GoReleaser.
|
|
|
|
FROM alpine:3.23.4
|
|
|
|
# TARGETARCH can be "amd64" or "arm64"
|
|
ARG TARGETARCH
|
|
ARG TARGETVARIANT
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apk add --no-cache curl su-exec
|
|
|
|
COPY linux/${TARGETARCH}/${TARGETVARIANT}/pocket-id /app/pocket-id
|
|
COPY ./scripts/docker /app/docker
|
|
|
|
EXPOSE 1411
|
|
ENV APP_ENV=production
|
|
|
|
HEALTHCHECK --interval=90s --timeout=5s --start-period=10s --retries=3 CMD [ "/app/pocket-id", "healthcheck" ]
|
|
|
|
ENTRYPOINT ["/app/docker/entrypoint.sh"]
|
|
CMD ["/app/pocket-id"]
|