nexus / Dockerfile
ykl45's picture
Update Dockerfile
9dbfcb3 verified
raw
history blame contribute delete
734 Bytes
FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y curl
RUN version=$(basename $(curl -sL -o /dev/null -w %{url_effective} https://github.com/what-the-fuck-ai/nexus/releases/latest)) \
&& base_url="https://github.com/what-the-fuck-ai/nexus/releases/expanded_assets/$version" \
&& latest_url=https://github.com/$(curl -sL $base_url | grep -oP 'href=".*x86_64.*musl\.tar\.gz(?=")' | sed 's/href="//') \
&& curl -Lo nexus.tar.gz $latest_url \
&& tar -xzf nexus.tar.gz
ENV LANG=C.UTF-8 DEBIAN_FRONTEND=noninteractive LANG=zh_CN.UTF-8 LANGUAGE=zh_CN.UTF-8 LC_ALL=C
RUN cp nexus /bin/nexus
RUN mkdir /.nexus && chmod 777 /.nexus
CMD ["/bin/nexus","run","--endpoint","http://127.0.0.1:7999","--enable-ui"]