This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM oven/bun:1 AS bun
|
||||
|
||||
FROM node:20-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
|
||||
Reference in New Issue
Block a user