Skip to content

Commit c592650

Browse files
fix: resolve permission issues with .local directory in Dockerfile
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4.5) <aider@aider.chat>
1 parent af9c7fc commit c592650

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

docker/Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff 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
2628
COPY gui.py /app/gui.py
2729

2830
# Expose Gradio's default port
2931
EXPOSE 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
3534
USER 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
3841
CMD ["python", "gui.py"]

0 commit comments

Comments
 (0)