+8
-3
Dockerfile
+8
-3
Dockerfile
···
33
33
34
34
WORKDIR /app
35
35
36
-
# Copy binary from builder
36
+
# Copy binary and entrypoint from builder
37
37
COPY --from=builder /build/brooke-spin /app/brooke-spin
38
+
COPY entrypoint.sh /app/entrypoint.sh
38
39
39
-
# Create data directory
40
-
RUN mkdir -p /app/data && chown -R brooke:brooke /app
40
+
# Set ownership and make entrypoint executable
41
+
RUN chown -R brooke:brooke /app && \
42
+
chmod +x /app/entrypoint.sh
41
43
42
44
# Switch to non-root user
43
45
USER brooke
46
+
47
+
# Use entrypoint to ensure data directory exists
48
+
ENTRYPOINT ["/app/entrypoint.sh"]
44
49
45
50
# Default command
46
51
CMD ["/app/brooke-spin", "-config", "/app/config.yaml"]
+1
-1
config.example.yaml
+1
-1
config.example.yaml
+1
-1
docker-compose.yml
+1
-1
docker-compose.yml