Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -24,8 +24,10 @@ WORKDIR $APP_HOME
|
|
24 |
RUN curl -L -o $APP_HOME/linux-amd64.tar.gz \
|
25 |
$(curl -s https://api.github.com/repos/lejianwen/rustdesk-api/releases/latest | jq -r '.assets[] | select(.name | test("linux-amd64.tar.gz")) | .browser_download_url') && \
|
26 |
tar -xzf linux-amd64.tar.gz && \
|
|
|
|
|
27 |
rm linux-amd64.tar.gz && \
|
28 |
-
chmod +x
|
29 |
chown -R rustdesk:rustdesk $APP_HOME
|
30 |
|
31 |
# 切换到非root用户
|
@@ -39,4 +41,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|
39 |
CMD curl -f http://localhost:21114/health || exit 1
|
40 |
|
41 |
# 设置容器启动命令
|
42 |
-
CMD ["
|
|
|
24 |
RUN curl -L -o $APP_HOME/linux-amd64.tar.gz \
|
25 |
$(curl -s https://api.github.com/repos/lejianwen/rustdesk-api/releases/latest | jq -r '.assets[] | select(.name | test("linux-amd64.tar.gz")) | .browser_download_url') && \
|
26 |
tar -xzf linux-amd64.tar.gz && \
|
27 |
+
ls -la && \
|
28 |
+
find . -name "*main*" -o -name "*api*" -o -name "rust*" | head -10 && \
|
29 |
rm linux-amd64.tar.gz && \
|
30 |
+
chmod +x $(find . -type f -executable | head -1) && \
|
31 |
chown -R rustdesk:rustdesk $APP_HOME
|
32 |
|
33 |
# 切换到非root用户
|
|
|
41 |
CMD curl -f http://localhost:21114/health || exit 1
|
42 |
|
43 |
# 设置容器启动命令
|
44 |
+
CMD ["/bin/bash", "-c", "exec $(find /app -type f -executable | head -1)"]
|