# Build from pre-compiled binary - NO RUST COMPILATION!
# Much faster than building in Docker

ARG SERVICE_NAME

# Just copy the binary
FROM scratch
ARG SERVICE_NAME

COPY ${SERVICE_NAME} /app/service
COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

USER 65532:65532
EXPOSE 8000

ENTRYPOINT ["/app/service"]
