Spaces:
Runtime error
Runtime error
gth commited on
Commit ·
c9278b5
1
Parent(s): 285e32a
add PDF reader
Browse files6 unmodified lines7891011121 unmodified line1415161718196 unmodified linesgit \&& rm -rf /var/lib/apt/lists/*WORKDIR /appCOPY . /app1 unmodified line# Install Python dependenciesRUN pip install --no-cache-dir -r requirements.txtEXPOSE 7861CMD ["python", "app.py"]6 unmodified lines7891011121314151 unmodified line1718192021222324252627286 unmodified linesgit \&& rm -rf /var/lib/apt/lists/*# Create a non-root userRUN useradd -m appuserWORKDIR /appCOPY . /app1 unmodified line# Install Python dependenciesRUN pip install --no-cache-dir -r requirements.txt# Change ownership of the /app directory to appuserRUN chown -R appuser:appuser /app# Switch to the non-root userUSER appuserEXPOSE 7861CMD ["python", "app.py"]
Dockerfile+10-1