2023-07-31 11:28:52 +00:00
|
|
|
FROM node:20-alpine
|
|
|
|
|
|
|
|
# Workdir
|
2023-08-01 15:26:50 +00:00
|
|
|
RUN mkdir /usr/lib/json-server
|
|
|
|
#RUN chown 33:33 /usr/lib/json-server
|
|
|
|
WORKDIR /usr/lib/json-server
|
2023-07-31 11:28:52 +00:00
|
|
|
|
|
|
|
# Install modules
|
|
|
|
RUN npm install -g json-server
|
|
|
|
|
2023-08-01 15:26:50 +00:00
|
|
|
ADD entrypoint.sh /usr/local/bin
|
|
|
|
|
|
|
|
#USER 33
|
2023-07-31 11:28:52 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["entrypoint.sh"]
|
2023-08-01 15:26:50 +00:00
|
|
|
CMD ["json-server", "-H", "0.0.0.0", "/usr/lib/json-server/db.json"]
|