File size: 518 Bytes
bc0496e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM node:18

WORKDIR /app

# Install unzip (required for extracting the zip file)
RUN apt-get update && apt-get install -y unzip curl

# Clean the app directory
RUN rm -rf /app/*

# Download the repo as a zip and extract it
RUN curl -L https://github.com/ReirLair/scanx/archive/refs/heads/main.zip -o repo.zip \
    && unzip repo.zip \
    && mv scanx-main/* . \
    && rm -rf scanx-main repo.zip

# Install dependencies
RUN npm install

# Set permissions
RUN chmod -R 777 /app

EXPOSE 7860

CMD ["node", "server.js"]