-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (21 loc) · 794 Bytes
/
Dockerfile
File metadata and controls
32 lines (21 loc) · 794 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
32
FROM composer:2 AS build
ARG FLARE_DAEMON_VERSION=dev
WORKDIR /app
COPY . .
RUN composer check-platform-reqs --no-dev
RUN FLARE_DAEMON_VERSION=${FLARE_DAEMON_VERSION} bash ./build.sh
FROM php:8.2-cli-alpine
ARG FLARE_DAEMON_VERSION=dev
RUN apk add --no-cache curl
WORKDIR /app
COPY --from=build /app/daemon.phar /app/daemon.phar
COPY docker/entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
ENV FLARE_DAEMON_LISTEN=0.0.0.0:8787
ENV FLARE_DAEMON_VERSION=${FLARE_DAEMON_VERSION}
LABEL org.opencontainers.image.title="Flare Daemon"
LABEL org.opencontainers.image.version="${FLARE_DAEMON_VERSION}"
EXPOSE 8787
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
CMD curl -sf http://127.0.0.1:8787/health || exit 1
ENTRYPOINT ["/app/entrypoint.sh"]