FROM debian:bookworm-slim ENV TZ=Asia/Shanghai # Install minimal runtime dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ libssl3 \ curl \ && rm -rf /var/lib/apt/lists/* WORKDIR /app # The build context is expected to be prepared by the deployment script # It should contain: # - app (the binary) # - config/ (if needed) # - assets/ (if needed) COPY . . # Ensure the binary is executable RUN chmod +x /app/app ENTRYPOINT ["/app/app"]