feat: import
Some checks failed
perso/opencode/pipeline/head Something is wrong with the build of this commit
Some checks failed
perso/opencode/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM node:24
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN groupadd -r opencode && useradd -m -r -g opencode opencode
|
||||
|
||||
RUN npm update -g && \
|
||||
npm install -g opencode-ai && \
|
||||
npm cache clean --force
|
||||
|
||||
COPY --chmod=755 opencode-attach /usr/local/bin/opencode-attach
|
||||
|
||||
USER opencode
|
||||
WORKDIR /home/opencode
|
||||
|
||||
RUN opencode --version
|
||||
|
||||
ENTRYPOINT ["opencode"]
|
||||
Reference in New Issue
Block a user