Add multistage build
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Damillora 2023-01-21 02:31:12 +07:00
parent 5c193c735e
commit a982340b8c
1 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,9 @@
FROM node:19-alpine
WORKDIR /app
FROM alpine AS clone
WORKDIR /source
RUN apk add --no-cache git
RUN git clone https://github.com/TavernAI/TavernAI
FROM node:19-alpine AS runtime
WORKDIR /app
COPY --from=clone /source/TavernAI /app/TavernAI
CMD ["node","./TavernAI/server.js"]