Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
|
@@ -4,19 +4,17 @@ FROM ubuntu:24.04
|
|
| 4 |
RUN sed -i 's#http://archive.ubuntu.com/#http://mirrors.tuna.tsinghua.edu.cn/#' /etc/apt/sources.list;
|
| 5 |
RUN apt-get update && apt-get install -y openssl nodejs npm
|
| 6 |
|
| 7 |
-
RUN useradd -m -u 1004 user
|
| 8 |
-
|
| 9 |
RUN openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 30 -out cert.pem -subj "/CN=localhost"
|
| 10 |
|
| 11 |
-
ENV HOME=/home/
|
| 12 |
-
PATH=/home/
|
| 13 |
|
| 14 |
WORKDIR $HOME/socks-server
|
| 15 |
RUN mkdir ./.wrangler
|
| 16 |
COPY . .
|
| 17 |
RUN tar -zxf ./node-v20.15.0-linux-x64.tar.gz
|
| 18 |
|
| 19 |
-
RUN chown -R
|
| 20 |
RUN chmod +x ./entrypoint.sh
|
| 21 |
|
| 22 |
EXPOSE 8787
|
|
|
|
| 4 |
RUN sed -i 's#http://archive.ubuntu.com/#http://mirrors.tuna.tsinghua.edu.cn/#' /etc/apt/sources.list;
|
| 5 |
RUN apt-get update && apt-get install -y openssl nodejs npm
|
| 6 |
|
|
|
|
|
|
|
| 7 |
RUN openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 30 -out cert.pem -subj "/CN=localhost"
|
| 8 |
|
| 9 |
+
ENV HOME=/home/ubuntu \
|
| 10 |
+
PATH=/home/ubuntu/.local/bin:$PATH
|
| 11 |
|
| 12 |
WORKDIR $HOME/socks-server
|
| 13 |
RUN mkdir ./.wrangler
|
| 14 |
COPY . .
|
| 15 |
RUN tar -zxf ./node-v20.15.0-linux-x64.tar.gz
|
| 16 |
|
| 17 |
+
RUN chown -R ubuntu:ubuntu ./
|
| 18 |
RUN chmod +x ./entrypoint.sh
|
| 19 |
|
| 20 |
EXPOSE 8787
|