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