feat: initialise project structure with core encoding queue, database models, and web management API
Build / Build and Push (push) Successful in 50s

This commit is contained in:
2026-06-05 19:53:31 +01:00
parent dceba72891
commit 07aa8e5ffe
33 changed files with 2911 additions and 1 deletions
+33
View File
@@ -0,0 +1,33 @@
# Build stage
FROM golang:1.26.4-bookworm AS builder
WORKDIR /app
# Copy source code
COPY . .
# Run go mod tidy to generate go.sum based on source
RUN go mod tidy
# Build the application
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /app/bin/goencode ./cmd/goencode
# Final stage
FROM debian:bookworm-slim
# Install ffmpeg and ca-certificates
RUN apt-get update && \
apt-get install -y --no-install-recommends ffmpeg ca-certificates && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy binary from builder
COPY --from=builder /app/bin/goencode /app/goencode
# Expose port
EXPOSE 8080
# Run the binary
ENTRYPOINT ["/app/goencode"]
CMD ["--config", "/etc/goencode/config.yaml"]