Files
Reduce/frontend/Dockerfile
Arkaprabha Chakraborty 65f113a90f Initial commit
2024-08-06 01:16:01 +05:30

27 lines
524 B
Docker

# Use a Node.js image with at least version 18.17.0
FROM node:18.17.0
# Set the working directory
WORKDIR /app
# Install bun
RUN curl -fsSL https://bun.sh/install | bash
# 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"]