Update Dockerfile to use bun, please remove bun install step if youre gonna use npm to build and run
This commit is contained in:
parent
f452231130
commit
dc1425d041
1 changed files with 3 additions and 3 deletions
|
|
@ -15,16 +15,16 @@ ENV PATH="/root/.bun/bin:${PATH}"
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
|
|
||||||
# Install dependencies (Node)
|
# Install dependencies (Node)
|
||||||
RUN npm install
|
RUN bun install
|
||||||
|
|
||||||
# Copy the rest of the project
|
# Copy the rest of the project
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the project (Bun is now available for "bun x neu build")
|
# 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 Vite preview port
|
||||||
EXPOSE 4173
|
EXPOSE 4173
|
||||||
|
|
||||||
# Run the built project
|
# Run the built project
|
||||||
CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0"]
|
CMD ["bun", "run", "preview", "--", "--host", "0.0.0.0"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue