-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 736 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 736 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 alpine:latest
ARG TARGETARCH
# Install runtime dependencies
RUN apk add --no-cache \
ca-certificates
# Copy pre-built binary from binaries directory
COPY binaries/beacon /usr/local/bin/beacon
# Set permissions
RUN chmod +x /usr/local/bin/beacon
# Create application directories
RUN mkdir -p /app/data /app/config
# Set working directory
WORKDIR /app
# Expose default port
EXPOSE 8080
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --quiet --tries=1 --spider http://localhost:8080/.well-known/jwks.json || exit 1
# Run BeaconAuth server
# Note: Database and config should be provided via environment variables or mounted volumes
ENTRYPOINT ["beacon"]
CMD ["serve"]