zhichyu commited on
Commit
3874a3d
·
1 Parent(s): 80378de

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)

Files changed (2) hide show
  1. Dockerfile +1 -0
  2. 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 ubuntu:22.04
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 /