-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathdev.Dockerfile
More file actions
43 lines (25 loc) · 1.02 KB
/
dev.Dockerfile
File metadata and controls
43 lines (25 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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