mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
**Try** to fix docker compose?
This commit is contained in:
parent
ef163b6174
commit
05e5b722fb
1 changed files with 12 additions and 12 deletions
24
Dockerfile
24
Dockerfile
|
@ -3,34 +3,34 @@
|
||||||
FROM oven/bun:latest as builder
|
FROM oven/bun:latest as builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package files
|
# Copy package files
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
COPY bun.lock* package-lock.json* yarn.lock* ./
|
COPY bun.lock* package-lock.json* yarn.lock* ./
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN bun pm untrusted
|
RUN bun pm untrusted
|
||||||
RUN bun install
|
RUN bun install
|
||||||
|
|
||||||
# Copy source files
|
# Copy source files
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the application
|
# Build the application
|
||||||
RUN bun run build
|
RUN bun run build
|
||||||
|
|
||||||
# Production stage
|
# Production stage
|
||||||
FROM oven/bun:latest
|
FROM oven/bun:latest
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package files for production
|
# Copy package files for production
|
||||||
COPY --from=builder /app/package.json ./
|
COPY --from=builder /app/package.json ./
|
||||||
|
|
||||||
# Copy build outputs from builder
|
# Copy build outputs from builder
|
||||||
COPY --from=builder /app/.output /app/.output
|
COPY --from=builder /app/.output /app/.output
|
||||||
|
|
||||||
RUN bun install --production
|
RUN bun install
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD ["bun", "run", "start"]
|
CMD ["bun", "run", "start"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue