build issues in bun lockfile when updating package.json

a year 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

a year 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 11 months ago