ABDALLALSWAITI commited on
Commit
cd31f41
·
verified ·
1 Parent(s): 370b9ad

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -46,13 +46,13 @@ COPY --chown=user requirements.txt package.json ./
46
  RUN pip install --no-cache-dir -r requirements.txt
47
  RUN npm install
48
 
49
- # Copy application files and the new startup script
50
  COPY --chown=user app.py puppeteer_pdf.js ./
51
- COPY --chown=user start.sh ./ # <-- ADD THIS LINE
52
 
53
  # Make scripts executable
54
  RUN chmod +x puppeteer_pdf.js
55
- RUN chmod +x start.sh # <-- ADD THIS LINE
56
 
57
  # Set permissions
58
  RUN mkdir -p /tmp && chmod 777 /tmp
@@ -68,7 +68,7 @@ ENV HOME=/home/user \
68
  PYTHONUNBUFFERED=1
69
 
70
  # Expose port
71
- [cite_start]EXPOSE 7860 [cite: 5]
72
 
73
  # Start application using the script
74
- CMD ["./start.sh"] # <-- CHANGE THIS LINE
 
46
  RUN pip install --no-cache-dir -r requirements.txt
47
  RUN npm install
48
 
49
+ # Copy application files and the startup script
50
  COPY --chown=user app.py puppeteer_pdf.js ./
51
+ COPY --chown=user start.sh ./
52
 
53
  # Make scripts executable
54
  RUN chmod +x puppeteer_pdf.js
55
+ RUN chmod +x start.sh
56
 
57
  # Set permissions
58
  RUN mkdir -p /tmp && chmod 777 /tmp
 
68
  PYTHONUNBUFFERED=1
69
 
70
  # Expose port
71
+ EXPOSE 7860
72
 
73
  # Start application using the script
74
+ CMD ["./start.sh"]