Spaces:
Quynhp
/
Runtime error

File size: 387 Bytes
1ea5456
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Use the official Node.js image as the base image
FROM node:20.4

# Set the working directory in the container
WORKDIR /app

RUN --mount=type=secret,id=CLONE,mode=0444,required=true \
  git clone $(cat /run/secrets/CLONE) .

RUN chown -R node:node ./* && \ 
    chmod u+x ./* && \
    chmod -R 777 /app
RUN npm install

# Start the application
CMD ["node", "server.js", "--disableCsrf"]