This commit is contained in:
2 files changed
+9
-1
No files matched your search
+6
-1
@@ -9,13 +9,18 @@ RUN bun install
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
|
||||
ARG OLLAMA_URL
|
||||
|
||||
ENV OLLAMA_URL=$OLLAMA_URL
|
||||
|
||||
# Build with the Bun Nitro preset
|
||||
RUN NITRO_PRESET=bun bun run build
|
||||
|
||||
# Stage 2: Production
|
||||
FROM oven/bun:latest
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
# Copy only the built output from the builder stage
|
||||
COPY --from=builder /app/.output ./.output
|
||||
|
||||
|
||||
Reference in new issue
Block a user