trainthetrainer commited on
Commit
2cbbc77
·
verified ·
1 Parent(s): 68cc440

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -1,15 +1,16 @@
1
- # Use Docker Hub mirror to avoid GHCR auth issues
2
  FROM docker.io/langflowai/langflow:1.0.12
3
 
4
  ENV PORT=7860
5
  ENV LANGFLOW_DATABASE_URL=sqlite:////data/langflow.db
6
  ENV LANGFLOW_ENABLE_AUTH=false
7
 
 
8
  USER root
9
  RUN mkdir -p /data && chown -R 1000:1000 /data
10
  USER 1000
11
 
12
  EXPOSE 7860
13
 
14
- # Use python -m to avoid any PATH issues
15
- CMD ["python", "-m", "langflow", "run", "--host", "0.0.0.0", "--port", "7860", "--path-prefix", "/"]
 
1
+ # Pull the prebuilt Langflow image from Docker Hub (avoids GHCR auth)
2
  FROM docker.io/langflowai/langflow:1.0.12
3
 
4
  ENV PORT=7860
5
  ENV LANGFLOW_DATABASE_URL=sqlite:////data/langflow.db
6
  ENV LANGFLOW_ENABLE_AUTH=false
7
 
8
+ # Make a writable data dir
9
  USER root
10
  RUN mkdir -p /data && chown -R 1000:1000 /data
11
  USER 1000
12
 
13
  EXPOSE 7860
14
 
15
+ # Use python -m and the updated flag --path
16
+ CMD ["python", "-m", "langflow", "run", "--host", "0.0.0.0", "--port", "7860", "--path", "/"]