vikarshana commited on
Commit
c9cc73b
·
verified ·
1 Parent(s): a656753

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -9
Dockerfile CHANGED
@@ -20,10 +20,6 @@ RUN apt-get update \
20
  # Set the working directory
21
  WORKDIR /app
22
 
23
- # Clone the private GitHub repository using the GitHub token from Docker BuildKit secrets
24
- RUN --mount=type=secret,id=GITHUB_REPO,required=true \
25
- --mount=type=secret,id=GITHUB_TOKEN,required=true \
26
- git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/$(cat /run/secrets/GITHUB_REPO).git .
27
 
28
  # Switch to the node user
29
  COPY --chown=node:node . .
@@ -32,11 +28,9 @@ RUN mkdir -p /app/lib/database && chown -R node:node /app/lib
32
 
33
  # Set permissions for the /app directory to allow writing
34
  RUN chmod -R 777 /app
35
- RUN npm install -g npm@latest
36
- # Install dependencies
37
- RUN npm install node-cache
38
 
39
- RUN npm install || yarn install
40
  EXPOSE 7860
41
  ENV NODE_ENV=production
42
- CMD ["npm", "start"]
 
 
20
  # Set the working directory
21
  WORKDIR /app
22
 
 
 
 
 
23
 
24
  # Switch to the node user
25
  COPY --chown=node:node . .
 
28
 
29
  # Set permissions for the /app directory to allow writing
30
  RUN chmod -R 777 /app
 
 
 
31
 
32
+
33
  EXPOSE 7860
34
  ENV NODE_ENV=production
35
+
36
+ RUN chmod +x start.sh