Skip to content

Commit 098b732

Browse files
use bun for docker builds
1 parent 22f2cf9 commit 098b732

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Dockerfile

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Node.js runtime as the base image
2-
FROM node:18 as build-stage
2+
FROM oven/bun:1.1-slim as build-stage
33
LABEL authors="xcodeassociated"
44

55
# Set working directory
@@ -9,18 +9,16 @@ WORKDIR /app
99
COPY package*.json ./
1010

1111
# Install dependencies
12-
RUN npm install
12+
RUN bun install --frozen-lockfile
1313

1414
# Copy app source code to the working directory
1515
COPY . .
1616

1717
# Generate types
18-
RUN npm run generate:graphql
19-
20-
RUN node node_modules/esbuild/install.js
18+
RUN bun run generate:graphql
2119

2220
# Build the prod app
23-
RUN NODE_ENV=production npm run build
21+
RUN NODE_ENV=production bun run build
2422

2523
# Use NGINX as the production server
2624
FROM nginx:stable-alpine-slim

0 commit comments

Comments
 (0)