mirror of
https://github.com/skidoodle/ipinfo.git
synced 2025-02-15 08:29:17 +01:00
test updates
This commit is contained in:
parent
7e14ec4d76
commit
d4ac1c0dd8
5 changed files with 10 additions and 5 deletions
|
@ -8,7 +8,8 @@ RUN go install github.com/maxmind/geoipupdate/v7/cmd/geoipupdate@latest
|
|||
RUN mkdir -p /build/data
|
||||
|
||||
FROM alpine:latest
|
||||
RUN apk add --no-cache curl
|
||||
RUN apk add --no-cache curl tzdata busybox-suid
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /build/ipinfo .
|
||||
COPY --from=builder /go/bin/geoipupdate /usr/local/bin/geoipupdate
|
||||
|
@ -23,6 +24,9 @@ RUN echo "AccountID ${GEOIPUPDATE_ACCOUNT_ID}" > /etc/GeoIP.conf && \
|
|||
echo "EditionIDs ${GEOIPUPDATE_EDITION_IDS}" >> /etc/GeoIP.conf && \
|
||||
echo "DatabaseDirectory ${GEOIPUPDATE_DB_DIR}" >> /etc/GeoIP.conf
|
||||
|
||||
RUN echo "0 0 * * * geoipupdate >> /var/log/geoipupdate.log 2>&1" > /etc/crontabs/root
|
||||
RUN cat /etc/crontabs/root
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s CMD curl --fail http://localhost:3000/ || exit 1
|
||||
|
||||
EXPOSE 3000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue