-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 846 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (23 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM php:8.3-cli-alpine3.22
ARG APP_VERSION=0.5.6
LABEL org.opencontainers.image.title="Dynamic DNS Worker" \
org.opencontainers.image.description="Provider-oriented Dynamic DNS worker" \
org.opencontainers.image.version="${APP_VERSION}" \
org.opencontainers.image.vendor="worryboy"
WORKDIR /app
RUN set -eux; \
apk add --no-cache --virtual .phpize-deps \
$PHPIZE_DEPS \
curl-dev \
libxml2-dev; \
docker-php-ext-install -j"$(nproc)" curl dom; \
apk add --no-cache \
ca-certificates \
libcurl \
libxml2; \
apk del --no-network .phpize-deps
COPY . /app
RUN chmod +x /app/docker/start.sh \
&& mkdir -p /app/state
HEALTHCHECK --interval=60s --timeout=10s --start-period=120s --retries=3 CMD php /app/bin/healthcheck.php
ENTRYPOINT ["/app/docker/start.sh"]