mirror of
https://github.com/remnawave/node.git
synced 2026-05-13 12:06:38 +00:00
43 lines
1 KiB
Docker
43 lines
1 KiB
Docker
FROM mcr.microsoft.com/devcontainers/base:jammy
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
curl \
|
|
supervisor \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
ENV NVM_DIR=/root/.nvm
|
|
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash \
|
|
&& . $NVM_DIR/nvm.sh \
|
|
&& nvm install v24.12.0 \
|
|
&& nvm alias default v24.12.0 \
|
|
&& nvm use default
|
|
|
|
|
|
ENV PATH="/root/.nvm/versions/node/v24.12.0/bin:${PATH}"
|
|
|
|
RUN curl -L https://raw.githubusercontent.com/remnawave/scripts/main/scripts/install-latest-xray.sh | bash -s -- v25.12.8
|
|
|
|
|
|
RUN mkdir -p /var/log/supervisor /var/lib/rnode/xray /app \
|
|
&& echo '{}' > /var/lib/rnode/xray/xray-config.json
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
EXPOSE 24000
|
|
|
|
COPY supervisord.conf /var/lib/rnode/xray/supervisor.conf
|
|
|
|
RUN echo '#!/bin/bash\n\
|
|
supervisord -c /var/lib/rnode/xray/supervisor.conf &\n\
|
|
exec "$@"' > /usr/local/bin/entrypoint.sh \
|
|
&& chmod +x /usr/local/bin/entrypoint.sh
|
|
|
|
|
|
ENV XTLS_API_PORT=61000
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
|
|
|
CMD tail -f /dev/null
|