This commit is contained in:
2026-03-24 13:09:24 +00:00
parent 9fda27e9e4
commit e0b5789405

View File

@@ -1,4 +1,3 @@
# Example Dockerfile for amd64
ARG BASE_IMAGE=alpine:latest
FROM ${BASE_IMAGE}
@@ -14,14 +13,16 @@ LABEL org.opencontainers.image.title="${APP_NAME}"
ENV TZ=${TZ}
ENV USER=${APP_USER}
RUN apk add --no-cache tzdata ca-certificates
RUN apt-get update && \
apt-get install wget && \
wget https://github.com/oschonrock/hibp/releases/download/v${BUILD_TAG}/hibp_${BUILD_TAG}-1_amd64.deb -o hibp_${BUILD_TAG}_amd64.deb && \
apt-get install ./hibp_${BUILD_TAG}-1_amd64.deb && \
rm -f hibp_${BUILD_TAG}-1_amd64.deb
WORKDIR /app
COPY ./config /app/config
COPY ./data /app/data
RUN adduser -D ${APP_USER} && chown -R ${APP_USER}:${APP_USER} /app
USER ${APP_USER}
CMD ["sh"]
CMD ["bash"]