Skip to content

Commit

Permalink
perf: migrate to bun runtime
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <zhangtianli2006@163.com>
  • Loading branch information
ZTL-UwU committed Sep 28, 2024
1 parent d1faa19 commit 846a425
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# syntax = docker/dockerfile:1

# Adjust NODE_VERSION as desired

# ARG NODE_VERSION=22.9.0
# FROM node:${NODE_VERSION}-slim as base
FROM oven/bun:slim as base
Expand All @@ -14,20 +12,11 @@ WORKDIR /app

# Set production environment
ENV NODE_ENV="production"

ENV NITRO_PRESET="bun"

# Install bun
# RUN npm install -g bun
# RUN curl -fsSL https://bun.sh/install | bash

# Throw-away build stage to reduce size of final image
FROM base as build

# Install packages needed to build node modules
# RUN apt-get update -qq && \
# apt-get install -y build-essential pkg-config python-is-python3

COPY . ./

# Install node modules
Expand Down

0 comments on commit 846a425

Please sign in to comment.