build issues in bun lockfile when updating package.json

9 months ago

I updated my bun.lockb file using bun install but the builds failed i production asking to remove the frozen lockfile cmd.

# Use the official Bun image as the base image
FROM oven/bun:latest

# Set the working directory in the container
WORKDIR /app
COPY . /app

# Install dependencies
RUN bun install --frozen-lockfile

# Expose the port the app runs on
EXPOSE 3000

# Command to run the application
CMD ["bun", "run", "src/index.ts"]

It builds without the --frozen-lockfile but fails when I remove it.

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Closed

1 Replies

9 months ago

This question would be best asked in the bun community, they would be able to give you a far more comprehensive answer than we would since this doesn't relate to the platform itself.


Status changed to Closed brody 9 months ago


build issues in bun lockfile when updating package.json - Railway Help Station