File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,20 +19,23 @@ RUN pip install --no-cache-dir uv && \
1919 uv pip install --system wdoc gradio && \
2020 rm -rf /root/.cache
2121
22- # Change ownership of the app directory to the wdoc user
23- RUN chown -R wdoc:wdoc /app
22+ # Create .local directory structure for the wdoc user and set permissions
23+ RUN mkdir -p /home/wdoc/.local && \
24+ chown -R wdoc:wdoc /home/wdoc/.local && \
25+ chown -R wdoc:wdoc /app
2426
2527# Copy the GUI script
2628COPY gui.py /app/gui.py
2729
2830# Expose Gradio's default port
2931EXPOSE 7860
3032
31- # Set environment variable for Gradio to listen on all interfaces
32- ENV GRADIO_SERVER_NAME="0.0.0.0"
33-
3433# Switch to non-root user for running the application
3534USER wdoc
3635
36+ # Set environment variables
37+ ENV GRADIO_SERVER_NAME="0.0.0.0"
38+ ENV HOME="/home/wdoc"
39+
3740# Run the Gradio app
3841CMD ["python" , "gui.py" ]
You can’t perform that action at this time.
0 commit comments