- Update all woodpecker files to use internal registry - Use Docker Hub credentials for base image pulls - Add cache_from/cache_to for internal registry caching - Remove GitHub Container Registry dependency
16 lines
337 B
Text
16 lines
337 B
Text
# 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"]
|