This commit is contained in:
Arkaprabha Chakraborty
2025-12-14 05:33:05 +05:30
parent 25ead1d8bd
commit 43c516a005
37 changed files with 1037 additions and 523 deletions

View File

@@ -1,26 +1,13 @@
# Use a Node.js image with at least version 18.17.0
FROM node:18.17.0
FROM oven/bun:latest
# Set the working directory
WORKDIR /app
WORKDIR /site
# Install bun
RUN curl -fsSL https://bun.sh/install | bash
COPY package*.json ./
# Set bun's binary path
ENV PATH="/root/.bun/bin:${PATH}"
# Copy the package.json and bun.lockb if available
COPY package*.json bun.lockb* ./
# Install dependencies using bun
RUN bun install
# Copy the rest of the application files
COPY . .
# Expose the port the app runs on
EXPOSE 3000
# Command to run the application
CMD ["bun", "run", "dev"]
CMD ["bun", "run", "dev", "--", "--host"]