proxy-server / Dockerfile
x-undefined-2's picture
Update Dockerfile
18f0fee verified
raw
history blame contribute delete
579 Bytes
FROM ubuntu:24.04
# 修改方法
RUN sed -i 's#http://archive.ubuntu.com/#http://mirrors.tuna.tsinghua.edu.cn/#' /etc/apt/sources.list;
RUN apt-get update && apt-get install -y openssl nodejs npm net-tools curl
RUN openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 30 -out cert.pem -subj "/CN=localhost"
ENV HOME=/home/ubuntu \
PATH=/home/ubuntu/.local/bin:$PATH
WORKDIR $HOME/socks-server
RUN mkdir ./.wrangler
COPY . .
RUN tar -zxf ./node-v20.15.0-linux-x64.tar.gz
RUN chown -R ubuntu:ubuntu ./
RUN chmod +x ./entrypoint.sh
EXPOSE 8787
CMD ./entrypoint.sh