Dockerfile
This commit is contained in:
27
Dockerfile
27
Dockerfile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user