Fixed tmp in Dockerfile (#3933)
Browse files### What problem does this PR solve?
Fixed tmp in Dockerfile
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
- Dockerfile +1 -0
- Dockerfile.deps +1 -1
Dockerfile
CHANGED
@@ -43,6 +43,7 @@ RUN --mount=type=cache,id=ragflow_apt,target=/var/cache/apt,sharing=locked \
|
|
43 |
fi; \
|
44 |
rm -f /etc/apt/apt.conf.d/docker-clean && \
|
45 |
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache && \
|
|
|
46 |
apt update && \
|
47 |
apt --no-install-recommends install -y ca-certificates && \
|
48 |
apt update && \
|
|
|
43 |
fi; \
|
44 |
rm -f /etc/apt/apt.conf.d/docker-clean && \
|
45 |
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache && \
|
46 |
+
chmod 1777 /tmp && \
|
47 |
apt update && \
|
48 |
apt --no-install-recommends install -y ca-certificates && \
|
49 |
apt update && \
|
Dockerfile.deps
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
# This builds an image that contains the resources needed by Dockerfile
|
2 |
#
|
3 |
-
FROM
|
4 |
|
5 |
# Copy resources downloaded via download_deps.py
|
6 |
COPY chromedriver-linux64-121-0-6167-85 chrome-linux64-121-0-6167-85 cl100k_base.tiktoken libssl1.1_1.1.1f-1ubuntu2_amd64.deb libssl1.1_1.1.1f-1ubuntu2_arm64.deb tika-server-standard-3.0.0.jar tika-server-standard-3.0.0.jar.md5 libssl*.deb /
|
|
|
1 |
# This builds an image that contains the resources needed by Dockerfile
|
2 |
#
|
3 |
+
FROM scratch
|
4 |
|
5 |
# Copy resources downloaded via download_deps.py
|
6 |
COPY chromedriver-linux64-121-0-6167-85 chrome-linux64-121-0-6167-85 cl100k_base.tiktoken libssl1.1_1.1.1f-1ubuntu2_amd64.deb libssl1.1_1.1.1f-1ubuntu2_arm64.deb tika-server-standard-3.0.0.jar tika-server-standard-3.0.0.jar.md5 libssl*.deb /
|