grapesjs/backend-docker/Dockerfile

19 lines
359 B
Docker
Raw Normal View History

2023-07-31 11:28:52 +00:00
FROM node:20-alpine
# Workdir
RUN mkdir /usr/local/app
RUN chown 33:33 /usr/local/app
WORKDIR /usr/local/app
ADD entrypoint.sh /usr/local/bin
# Install modules
RUN npm install -g json-server
USER 33
# Cant kill with ctrl+c
#ENTRYPOINT ["/usr/local/bin/json-server", "db.json"]
ENTRYPOINT ["entrypoint.sh"]
2023-07-31 12:43:34 +00:00
CMD ["json-server", "-H", "0.0.0.0", "db.json"]