16 lines
311 B
Docker
16 lines
311 B
Docker
ARG TARGET_PLATFORM
|
|
ARG BASE_IMAGE
|
|
|
|
FROM --platform=${TARGET_PLATFORM} ${BASE_IMAGE}
|
|
|
|
ARG PLATFORM_SUFFIX
|
|
COPY /dist/woodpecker-yc-autoscaler${PLATFORM_SUFFIX} /bin/woodpecker-yc-autoscaler
|
|
|
|
ENV GOMAXPROCS=4 \
|
|
MALLOC_ARENA_MAX=4
|
|
|
|
ENTRYPOINT [ "/bin/woodpecker-yc-autoscaler" ]
|
|
CMD [ ]
|
|
|
|
USER nonroot:nonroot
|