File size: 501 Bytes
9a22486
 
 
2787a02
9a22486
 
 
 
2787a02
 
9a22486
2787a02
 
 
9a22486
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM node:20-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
    ca-certificates git curl tini \
  && rm -rf /var/lib/apt/lists/*

RUN npm install -g opencode-ai

# Create an app dir and give ownership to the existing "node" user (uid 1000)
RUN mkdir -p /home/node/app && chown -R node:node /home/node/app

USER node
WORKDIR /home/node/app
COPY --chown=node:node . .

EXPOSE 7860

ENTRYPOINT ["/usr/bin/tini","--"]
CMD ["opencode","web","--hostname","0.0.0.0","--port","7860"]