Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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
|
| 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,7 +68,7 @@ ENV HOME=/home/user \
|
|
| 68 |
PYTHONUNBUFFERED=1
|
| 69 |
|
| 70 |
# Expose port
|
| 71 |
-
|
| 72 |
|
| 73 |
# Start application using the script
|
| 74 |
-
CMD ["./start.sh"]
|
|
|
|
| 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"]
|