This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -1,15 +1,22 @@
|
||||
FROM oven/bun AS builder
|
||||
FROM oven/bun:1.4.0 AS builder
|
||||
WORKDIR /app
|
||||
COPY package.json bun.lock ./
|
||||
RUN bun install
|
||||
RUN bun install --frozen-lockfile
|
||||
COPY . .
|
||||
RUN bun run build
|
||||
|
||||
FROM oven/bun
|
||||
FROM oven/bun:1.4.0
|
||||
WORKDIR /app
|
||||
ARG GIT_SHA=dev
|
||||
ENV APP_VERSION=$GIT_SHA
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/build ./build
|
||||
COPY --from=builder /app/scripts ./scripts
|
||||
COPY --from=builder /app/data ./data
|
||||
COPY --from=builder /app/src/lib/server/db/schema ./src/lib/server/db/schema
|
||||
COPY --from=builder /app/src/lib/availability.ts ./src/lib/availability.ts
|
||||
COPY package.json ./
|
||||
EXPOSE 3000
|
||||
ENV NODE_ENV=production
|
||||
CMD ["bun", "build/index.js"]
|
||||
ENV BODY_SIZE_LIMIT=6M
|
||||
CMD ["bun", "build/index.js"]
|
||||
|
||||
Reference in New Issue
Block a user