Update Dockerfile to use bun, please remove bun install step if youre gonna use npm to build and run

This commit is contained in:
Eduard Prigoana 2026-02-20 17:35:19 +02:00 committed by GitHub
parent f452231130
commit dc1425d041
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,16 +15,16 @@ ENV PATH="/root/.bun/bin:${PATH}"
COPY package.json package-lock.json ./
# Install dependencies (Node)
RUN npm install
RUN bun install
# Copy the rest of the project
COPY . .
# Build the project (Bun is now available for "bun x neu build")
RUN npm run build
RUN bun run build
# Expose Vite preview port
EXPOSE 4173
# Run the built project
CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0"]
CMD ["bun", "run", "preview", "--", "--host", "0.0.0.0"]