feat: import
Some checks failed
perso/opencode/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
Julien Cabillot
2026-03-27 17:26:11 -04:00
parent 9a303b49e5
commit 59d62367b3
5 changed files with 223 additions and 1 deletions

19
Dockerfile Normal file
View 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"]