Update Dockerfile

pull/35/head
Ahmed Nour Eldin 2022-07-18 19:48:19 +02:00 committed by GitHub
parent d56f1b87d3
commit d7dc914d98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1,10 +1,12 @@
FROM node:slim
FROM node:18.6.0-slim
RUN mkdir /space
RUN chown node:node /space
USER node
WORKDIR /space
RUN npx --yes @silverbulletmd/server || true
EXPOSE 3000
CMD ["sh","-c","npx --yes @silverbulletmd/server --port 3000 /space"]
CMD ["sh","-c","npx --yes @silverbulletmd/server --port 3000 /space"]