Dockerfile
Some checks failed
Lint / lint (push) Successful in 13s
Build / build (pull_request) Failing after 31s

This commit is contained in:
Julien Valverdé
2025-09-18 00:10:31 +02:00
parent 0908eba0ad
commit f355a14fcf
8 changed files with 30 additions and 37 deletions

View File

@@ -1,24 +1,15 @@
FROM oven/bun:1 AS bun
FROM node:20-trixie-slim
FROM oven/bun:1.2.22 AS bun
FROM node:22.19.0-trixie-slim
COPY --from=bun /usr/local/bin/bun \
/usr/local/bin/bunx \
/usr/local/bin/
WORKDIR /app
COPY ./ ./
RUN bun install --frozen-lockfile && \
npm run build && \
npm run lint:tsc && \
# npm run lint:eslint && \
npm run clean:cache && \
\
npm run clean:node && \
bun install --frozen-lockfile --production && \
find node_modules/proxy-from-env -type f -exec chmod 644 {} \; && \
npx -w packages/server prisma generate && \
\
cd cms && \
bun install --frozen-lockfile --production && \
npm run build
bun lint:tsc && \
bun --cwd=./packages/server bun:build && \
bun --cwd=./packages/server node:build && \
bun --cwd=./packages/webapp build && \
bun clean:cache && \
bun clean:node && \
bun install --frozen-lockfile --production