jc21 / docker-registry-ui

😎 A nice web interface for managing your Docker Registry images
MIT License
324 stars 71 forks source link

arm64v8 image #2

Open h3rj4n opened 5 years ago

h3rj4n commented 5 years ago

I've created a arm64v8 image using multistage builds. Maybe you can add it in your Jenkins build and push it to the docker hub.

This is my docker build file:

FROM jc21/registry-ui as original

FROM arm64v8/node:alpine

RUN apk add --update --no-cache curl

ENV NODE_ENV=production

COPY --from=original /srv/app/dist                /srv/app/dist
COPY --from=original /srv/app/node_modules        /srv/app/node_modules
COPY --from=original /srv/app/LICENCE             /srv/app/LICENCE
COPY --from=original /srv/app/package.json        /srv/app/package.json
COPY --from=original /srv/app/src/backend         /srv/app/src/backend

WORKDIR /srv/app

CMD node --max_old_space_size=250 --abort_on_uncaught_exception src/backend/index.js

HEALTHCHECK --interval=15s --timeout=3s CMD curl -f http://localhost/ || exit 1
jc21 commented 5 years ago

Thanks I'll try to get this sorted when I get a chance

aleksei-pronichev commented 2 years ago

it would be great if you can make a version for arm64