cheekeong2025 commited on
Commit
0bc145e
·
verified ·
1 Parent(s): 956752a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -3,10 +3,11 @@ FROM transformerlab/api:latest
3
 
4
  # ------------------------------------------------------------------
5
  # 1) Make a non-root-friendly copy of the Transformer Lab sources
 
6
  # ------------------------------------------------------------------
7
  RUN mkdir -p /workspace/tl && \
8
  cp -r /root/.transformerlab/src /workspace/tl/src && \
9
- chmod -R a+rx /workspace/tl
10
 
11
  # ------------------------------------------------------------------
12
  # 2) Create a writable "home" for the runtime user
 
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