Skip to content

Commit

Permalink
chore: fix fly
Browse files Browse the repository at this point in the history
  • Loading branch information
ZTL-UwU committed Feb 10, 2024
1 parent d4d7e45 commit 03fecc2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# syntax = docker/dockerfile:1

ARG BUN_VERSION=1.0.18
FROM oven/bun:${BUN_VERSION} as base
# Adjust NODE_VERSION as desired
ARG NODE_VERSION=18.18.0
FROM node:${NODE_VERSION}-slim as base

LABEL fly_launch_runtime="Bun"
LABEL fly_launch_runtime="Node.js"

# Node.js app lives here
WORKDIR /app
Expand All @@ -12,6 +13,9 @@ WORKDIR /app
ENV NODE_ENV="production"
ENV NITRO_PRESET="bun"

# Install bun
RUN npm install -g [email protected]

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

Expand All @@ -23,7 +27,7 @@ COPY . ./

# Install node modules
COPY --link .npmrc package.json bun.lockb ./
RUN bun install
RUN bun install --frozen-lockfile

# Build application
RUN bun run build
Expand Down

0 comments on commit 03fecc2

Please sign in to comment.