transformers / Dockerfile
Omartificial-Intelligence-Space's picture
Update Dockerfile
7fcd8a7 verified
raw
history blame contribute delete
281 Bytes
# Stage 1: Build the app
FROM node:20 AS build
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
# Stage 2: Serve the app
FROM node:20 AS serve
WORKDIR /app
RUN npm install -g serve
COPY --from=build /app/dist ./dist
EXPOSE 7860
CMD ["serve", "-s", "dist", "-l", "7860"]