Badal commited on
Commit ·
f26dfa4
1
Parent(s): 91d29b6
Use /home instead of /home/user
Browse filesFiles changed (2)
- Dockerfile+5-6
- entrypoint.sh+2-2
26 unmodified lines2728293031323334352 unmodified lines38394041424344454626 unmodified linesRUN curl -fsSL https://opencode.ai/install | bash# 4. Setup user & foldersRUN useradd -m -s /bin/bash userRUN mkdir -p /home/user && chmod 777 /home/user# 5. Copy entrypoint script2 unmodified lines# 6. Environment settings with RAM limitENV OPENCODE_DATA_DIR=/home/userENV HOME=/home/userENV PATH="/root/.local/bin:/home/node/.local/bin:/home/user/.local/bin:$PATH"ENV NODE_OPTIONS="--max-old-space-size=14336"26 unmodified lines27282930313233342 unmodified lines37383940414243444526 unmodified linesRUN curl -fsSL https://opencode.ai/install | bash# 4. Setup foldersRUN mkdir -p /home && chmod 777 /home# 5. Copy entrypoint script2 unmodified lines# 6. Environment settings with RAM limitENV OPENCODE_DATA_DIR=/homeENV HOME=/homeENV PATH="/root/.local/bin:/home/node/.local/bin:/home/.local/bin:$PATH"ENV NODE_OPTIONS="--max-old-space-size=14336"
7 unmodified lines89101112131442 unmodified lines575859606162637 unmodified lines# VariablesBUCKET='hf://buckets/bk939448/opencodeai'SOURCE='/home/user'# Configure Gitgit config --global user.email 'badal@example.com'42 unmodified linesexit 1fi# Wait for any file change in /home/user (blocks until change detected)# Excludes .mdb files, .cache folder, .npm folder from triggering syncinotifywait -r -e modify,create,delete,move \--exclude '.*\.mdb$' \7 unmodified lines89101112131442 unmodified lines575859606162637 unmodified lines# VariablesBUCKET='hf://buckets/bk939448/opencodeai'SOURCE='/home'# Configure Gitgit config --global user.email 'badal@example.com'42 unmodified linesexit 1fi# Wait for any file change in /home (blocks until change detected)# Excludes .mdb files, .cache folder, .npm folder from triggering syncinotifywait -r -e modify,create,delete,move \--exclude '.*\.mdb$' \
Dockerfile+5-6
entrypoint.sh+2-2