All checks were successful
Test and deploy staging / staging (push) Successful in 12m6s
25 lines
738 B
Docker
Executable File
25 lines
738 B
Docker
Executable File
FROM oven/bun:1.4.0 AS builder
|
|
WORKDIR /app
|
|
COPY package.json bun.lock ./
|
|
RUN bun install --frozen-lockfile
|
|
COPY . .
|
|
RUN bun run test:unit -- --run
|
|
RUN bun run build
|
|
|
|
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/cs-prices ./src/lib/cs-prices
|
|
COPY --from=builder /app/src/lib/availability.ts ./src/lib/availability.ts
|
|
COPY package.json ./
|
|
EXPOSE 3000
|
|
ENV NODE_ENV=production
|
|
ENV BODY_SIZE_LIMIT=6M
|
|
CMD ["bun", "build/index.js"]
|