feat: add docker configuration

This commit is contained in:
sam 2024-09-14 18:07:49 +02:00
parent 821712f43b
commit cf2f624ae4
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
21 changed files with 232 additions and 13 deletions

View file

@ -0,0 +1,12 @@
FROM docker.io/node:22
RUN mkdir -p /app/node_modules && chown -R node:node /app
WORKDIR /app
COPY package.json yarn.lock ./
USER node
RUN yarn
COPY --chown=node:node . .
RUN yarn build
CMD ["yarn", "start"]