File size: 996 Bytes
66594f4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Use an official Node.js image as the base
FROM node:18

# Set the working directory in the container
WORKDIR /app

# Install Bun (if needed)
RUN curl -fsSL https://bun.sh/install | bash && \
    export PATH="/root/.bun/bin:$PATH"

# Clone the repository (default branch is main)
RUN git clone https://github.com/UseInterstellar/Interstellar.git .

# For Ad-Free Deployment, uncomment the following two lines and comment the above clone command
# RUN git clone --branch Ad-Free https://github.com/UseInterstellar/Interstellar.git .

# Install dependencies based on the package manager you want to use
# Uncomment one of the following blocks depending on your package manager

# For Bun
# RUN bun i
# CMD ["bun", "start"]

# For pnpm
# RUN npm install -g pnpm && pnpm i
# CMD ["pnpm", "start"]

# For npm
RUN npm i
CMD ["npm", "run", "start"]

# Add update instructions as a comment for manual execution
# To update the repository later:
# cd /app && git pull --force --allow-unrelated-histories