merasabkuch commited on
Commit
03684c7
1 Parent(s): 5774ae9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -25,7 +25,9 @@ RUN chown -R node:node .
25
  # Expose the port the app runs on
26
  EXPOSE 7860
27
 
28
- RUN echo $SERVICE_ACC_JSON > serviceAcc.json
 
 
29
 
30
 
31
  # Command to run the Node.js server
 
25
  # Expose the port the app runs on
26
  EXPOSE 7860
27
 
28
+ RUN --mount=type=secret,id=SERVICE_ACC_JSON,mode=0444,required=true \
29
+ cp /run/secrets/SERVICE_ACC_JSON serviceAcc.json
30
+ # Copy the service account JSON file to the working directory
31
 
32
 
33
  # Command to run the Node.js server