Skip to content

Commit 420c8db

Browse files
author
mike dupont
committed
one phase commit
1 parent 4af2a3d commit 420c8db

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

Dockerfile

-27
Original file line numberDiff line numberDiff line change
@@ -27,43 +27,16 @@ COPY scripts ./scripts
2727
# Copy source code
2828
COPY packages ./packages
2929

30-
31-
3230
# Install dependencies
3331
RUN bun install
3432
RUN bun add better-sqlite3
3533

3634
# Build the project
3735
RUN bun run build
3836

39-
# Create a new stage for the final image
40-
FROM node:23.3.0-slim
4137

4238
WORKDIR /app
4339

44-
# Install Node.js 23.3.0 and required dependencies
45-
RUN apt-get update && \
46-
apt-get install -y curl git python3 make g++ unzip build-essential nodejs && \
47-
apt-get clean && \
48-
rm -rf /var/lib/apt/lists/*
49-
50-
# Install bun using npm
51-
RUN npm install -g bun turbo@2.3.3
52-
53-
# Copy built artifacts and production dependencies from the builder stage
54-
55-
COPY --from=builder /app/package.json ./
56-
COPY --from=builder /app/tsconfig.json ./
57-
COPY --from=builder /app/turbo.json ./
58-
COPY --from=builder /app/lerna.json ./
59-
COPY --from=builder /app/renovate.json ./
60-
COPY --from=builder /app/biome.json ./
61-
COPY --from=builder /app/node_modules ./node_modules
62-
COPY --from=builder /app/packages ./packages
63-
COPY --from=builder /app/scripts ./scripts
64-
65-
66-
6740
# Set environment variables
6841
ENV NODE_ENV=production
6942

0 commit comments

Comments
 (0)