Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -4,7 +4,7 @@ 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 |
|
|
@@ -17,7 +17,7 @@ COPY . .
|
|
| 17 |
RUN tar -zxf ./node-v20.15.0-linux-x64.tar.gz
|
| 18 |
|
| 19 |
RUN chown -R user:user ./
|
| 20 |
-
RUN chmod +x
|
| 21 |
|
| 22 |
EXPOSE 8787
|
| 23 |
|
|
|
|
| 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 |
|
|
|
|
| 17 |
RUN tar -zxf ./node-v20.15.0-linux-x64.tar.gz
|
| 18 |
|
| 19 |
RUN chown -R user:user ./
|
| 20 |
+
RUN chmod +x ./entrypoint.sh
|
| 21 |
|
| 22 |
EXPOSE 8787
|
| 23 |
|