mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
added Dockerfile
This commit is contained in:
parent
e4a06081ec
commit
2ae4305a29
18
packages/wrapper/Dockerfile
Normal file
18
packages/wrapper/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
FROM node:16-alpine
|
||||
|
||||
RUN apk add git
|
||||
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
|
||||
|
||||
WORKDIR /home/node/app
|
||||
USER node
|
||||
|
||||
EXPOSE 9000
|
||||
|
||||
COPY --chown=node:node ./package.json .
|
||||
COPY --chown=node:node ./src ./src
|
||||
|
||||
RUN chmod -R 777 /home/node/app
|
||||
RUN npm install -D --force
|
||||
RUN npm run build
|
||||
|
||||
CMD ["node", "/home/node/app/src/index.js"]
|
Loading…
x
Reference in New Issue
Block a user