Created the Dockerfile
This commit is contained in:
parent
900cd41e46
commit
2553d5e45d
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --chown=node:node ./server ./server
|
||||
COPY --chown=node:node ./package.json ./package.json
|
||||
|
||||
RUN npm install
|
||||
|
||||
RUN chown -R node:node /app
|
||||
|
||||
USER node
|
||||
|
||||
EXPOSE 5287
|
||||
|
||||
CMD ["node", "server"]
|
Loading…
x
Reference in New Issue
Block a user