grapesjs/backend-docker/Dockerfile
Adrian Amaglio f6be728c19 temp
2023-08-01 17:26:50 +02:00

17 lines
322 B
Docker

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"]