We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22f2cf9 commit 098b732Copy full SHA for 098b732
Dockerfile
@@ -1,5 +1,5 @@
1
# Use an official Node.js runtime as the base image
2
-FROM node:18 as build-stage
+FROM oven/bun:1.1-slim as build-stage
3
LABEL authors="xcodeassociated"
4
5
# Set working directory
@@ -9,18 +9,16 @@ WORKDIR /app
9
COPY package*.json ./
10
11
# Install dependencies
12
-RUN npm install
+RUN bun install --frozen-lockfile
13
14
# Copy app source code to the working directory
15
COPY . .
16
17
# Generate types
18
-RUN npm run generate:graphql
19
-
20
-RUN node node_modules/esbuild/install.js
+RUN bun run generate:graphql
21
22
# Build the prod app
23
-RUN NODE_ENV=production npm run build
+RUN NODE_ENV=production bun run build
24
25
# Use NGINX as the production server
26
FROM nginx:stable-alpine-slim
0 commit comments