-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.runtime
More file actions
32 lines (23 loc) · 875 Bytes
/
Dockerfile.runtime
File metadata and controls
32 lines (23 loc) · 875 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
# Runtime stage only - expects pre-built binary at ./streamocracy
FROM debian:bookworm-slim
WORKDIR /app
# Install runtime dependencies
RUN apt-get update && apt-get install -y \
ca-certificates \
libssl3 \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
# Create non-root user
RUN useradd -m -u 1000 streamocracy
# Copy pre-built binary (injected via build context)
COPY streamocracy /usr/local/bin/streamocracy
RUN chmod +x /usr/local/bin/streamocracy
# Create config directory and set permissions
RUN mkdir -p /app/config && chown -R streamocracy:streamocracy /app
USER streamocracy
# Set default config path environment variable
ENV STREAMOCRACY_CONFIG=/app/config/config.toml
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD pgrep -x streamocracy > /dev/null || exit 1
ENTRYPOINT ["streamocracy"]