Add multistage build
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Damillora 2023-01-21 02:31:12 +07:00
parent 5c193c735e
commit a982340b8c

View File

@ -1,4 +1,9 @@
FROM node:19-alpine FROM alpine AS clone
WORKDIR /app WORKDIR /source
RUN apk add --no-cache git
RUN git clone https://github.com/TavernAI/TavernAI 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"] CMD ["node","./TavernAI/server.js"]