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 lines27282930313230313233342 unmodified lines37383941424340414243444526 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# 4. Setup foldersRUN mkdir -p /home && chmod 777 /home
# 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 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 lines8910111112131442 unmodified lines57585960606162637 unmodified lines
# VariablesBUCKET='hf://buckets/bk939448/opencodeai'SOURCE='/home/user'SOURCE='/home'
# Configure Gitgit config --global user.email 'badal@example.com'42 unmodified lines exit 1 fi
# Wait for any file change in /home/user (blocks until change detected) # Wait for any file change in /home (blocks until change detected) # Excludes .mdb files, .cache folder, .npm folder from triggering sync inotifywait -r -e modify,create,delete,move \ --exclude '.*\.mdb$' \Dockerfile+5-6
entrypoint.sh+2-2