cheekeong2025 commited on
Commit
76d49a3
·
verified ·
1 Parent(s): 0bc145e

Upload 2 files

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -28
Dockerfile CHANGED
@@ -1,31 +1,5 @@
1
- # Base Transformer Lab image (contains install.sh + run.sh in /root/.transformerlab/src)
2
  FROM transformerlab/api:latest
3
 
4
- # ------------------------------------------------------------------
5
- # 1) Make a non-root-friendly copy of the Transformer Lab sources
6
- # and allow the runtime user to WRITE there (for worker.pid, logs, etc.)
7
- # ------------------------------------------------------------------
8
- RUN mkdir -p /workspace/tl && \
9
- cp -r /root/.transformerlab/src /workspace/tl/src && \
10
- chmod -R a+rwX /workspace/tl
11
-
12
- # ------------------------------------------------------------------
13
- # 2) Create a writable "home" for the runtime user
14
- # ------------------------------------------------------------------
15
- RUN mkdir -p /workspace/home && \
16
- chmod -R a+rwX /workspace/home
17
-
18
- # This is where install.sh will create ~/.transformerlab, ~/.conda, etc.
19
- ENV HOME=/workspace/home
20
-
21
- # Work from the copied source directory
22
- WORKDIR /workspace/tl/src
23
-
24
- # Port used by Transformer Lab
25
  EXPOSE 8338
26
-
27
- # ------------------------------------------------------------------
28
- # 3) Run full install + start server on port 8338
29
- # ------------------------------------------------------------------
30
- ENTRYPOINT ["/bin/bash", "-lc"]
31
- CMD ["./install.sh && ./run.sh -p 8338"]
 
1
+ # Use official ALL-IN-ONE Transformer Lab image (UI + Engine)
2
  FROM transformerlab/api:latest
3
 
4
+ # Expose the port used by Transformer Lab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  EXPOSE 8338