FROM node:20-alpine # Workdir RUN mkdir /usr/lib/json-server #RUN chown 33:33 /usr/lib/json-server WORKDIR /usr/lib/json-server # Install modules RUN npm install -g json-server ADD entrypoint.sh /usr/local/bin #USER 33 ENTRYPOINT ["entrypoint.sh"] CMD ["json-server", "-H", "0.0.0.0", "/usr/lib/json-server/db.json"]