File size: 579 Bytes
6228c93
90abe28
17385c5
 
18f0fee
ed5c73a
 
 
72989d3
 
90abe28
 
 
 
 
 
72989d3
228ed4f
90abe28
3c5f7d1
90abe28
bc51ba2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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