silverbullet/Dockerfile

13 lines
224 B
Docker
Raw Permalink Normal View History

2022-07-19 01:48:19 +08:00
FROM node:18.6.0-slim
2022-07-18 09:23:27 +08:00
RUN mkdir /space
RUN chown node:node /space
USER node
WORKDIR /space
2022-07-19 01:48:19 +08:00
RUN npx --yes @silverbulletmd/server || true
2022-07-18 09:23:27 +08:00
EXPOSE 3000
2022-07-19 01:48:19 +08:00
CMD ["sh","-c","npx --yes @silverbulletmd/server --port 3000 /space"]