更新 opencode/Dockerfile

This commit is contained in:
wol
2026-07-04 15:31:42 +08:00
parent 84e7725bf1
commit a71cdecbff
+7 -6
View File
@@ -40,9 +40,13 @@ RUN apt-get update && apt-get install -y \
openjdk-21-jdk \
docker.io \
docker-compose-v2 \
uv \
&& rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get update && \
apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/*
RUN npm config set registry http://nexus:8081/repository/npm-public/
RUN npm install -g \
@@ -56,11 +60,6 @@ RUN mkdir -p /root/.pip
RUN printf "[global]\nindex-url=http://nexus:8081/repository/pypi-public\ntrusted-host=nexus\n" \
> /root/.pip/pip.conf
COPY settings.xml /root/.m2/settings.xml
RUN pip install uv
RUN opencode --version
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64
@@ -73,6 +72,8 @@ RUN mkdir -p \
/root/.m2 \
/root/.gradle
COPY settings.xml /root/.m2/settings.xml
EXPOSE 3004
EXPOSE 3005