feat(ci): add docker build&publish pipeline

This commit is contained in:
Tarow
2024-10-30 16:24:34 +00:00
parent 0e9a8ff764
commit 94b0e643b4
8 changed files with 65 additions and 276 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM node:20-slim
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
COPY . .
RUN npm run build
CMD [ "node", "dist/index.js" ]