mirror of
https://github.com/arkorty/Reduce.git
synced 2026-03-18 00:47:10 +00:00
Initial commit
This commit is contained in:
26
frontend/Dockerfile
Normal file
26
frontend/Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user