Update Dockerfile
Browse files- Dockerfile +1 -2
Dockerfile
CHANGED
|
@@ -20,7 +20,7 @@ COPY --from=py-builder /usr/local/bin /usr/local/bin
|
|
| 20 |
|
| 21 |
COPY ./main.py .
|
| 22 |
COPY ./update_and_restart.sh .
|
| 23 |
-
|
| 24 |
|
| 25 |
|
| 26 |
|
|
@@ -29,7 +29,6 @@ RUN chmod -R 777 /code
|
|
| 29 |
|
| 30 |
# 确保启动脚本可执行
|
| 31 |
RUN chmod +x /code/update_and_restart.sh
|
| 32 |
-
RUN chmod 777 /code/ip_query.log
|
| 33 |
|
| 34 |
# 容器启动命令
|
| 35 |
CMD ["sh", "/code/update_and_restart.sh"]
|
|
|
|
| 20 |
|
| 21 |
COPY ./main.py .
|
| 22 |
COPY ./update_and_restart.sh .
|
| 23 |
+
RUN touch /code/ip_query.log && chmod 777 /code/ip_query.log
|
| 24 |
|
| 25 |
|
| 26 |
|
|
|
|
| 29 |
|
| 30 |
# 确保启动脚本可执行
|
| 31 |
RUN chmod +x /code/update_and_restart.sh
|
|
|
|
| 32 |
|
| 33 |
# 容器启动命令
|
| 34 |
CMD ["sh", "/code/update_and_restart.sh"]
|