mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-11-29 09:18:28 +01:00
feat(config): add docker
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM node:18-buster
|
||||
|
||||
WORKDIR /opt/app
|
||||
|
||||
COPY --chown=node:node package.json .
|
||||
COPY --chown=node:node package-lock.json .
|
||||
COPY --chown=node:node tsconfig.json .
|
||||
COPY --chown=node:node prisma ./prisma/
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
RUN chown node:node /opt/app/
|
||||
|
||||
USER node
|
||||
|
||||
CMD [ "npm", "run", "start:migrate"]
|
||||
Reference in New Issue
Block a user