wwforonce commited on
Commit
a490ff5
·
1 Parent(s): 84e5172

fix add dataset

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -1,5 +1,4 @@
1
- FROM codeberg.org/readeck/readeck:latest
2
-
3
  # Install dependencies
4
  RUN apt update && apt install -y \
5
  gcc \
@@ -7,6 +6,7 @@ RUN apt update && apt install -y \
7
  sudo \
8
  git-lfs \
9
  openssl \
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # Install Python packages
@@ -46,5 +46,11 @@ RUN chmod +x /app/sync_storage.py /app/start.sh
46
  # Set working directory
47
  WORKDIR /app
48
 
 
 
 
 
 
 
49
  ENTRYPOINT ["/bin/sh", "/app/start.sh"]
50
  # CMD ["/bin/readeck","serve", "-config", "/app/readeck/config.toml"]
 
1
+ FROM python:3.11-slim
 
2
  # Install dependencies
3
  RUN apt update && apt install -y \
4
  gcc \
 
6
  sudo \
7
  git-lfs \
8
  openssl \
9
+ jq \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # Install Python packages
 
46
  # Set working directory
47
  WORKDIR /app
48
 
49
+ RUN readeck_url=$(curl -X 'GET' 'https://codeberg.org/api/v1/repos/readeck/readeck/releases/latest' -H 'accept: application/json' | jq -r '.assets[] | .browser_download_url | select(. | endswith("linux-amd64"))') && \
50
+ echo download readeck from $readeck_url && \
51
+ wget -q $readeck_url -O /bin/readeck &&\
52
+ chmod a+x /bin/readeck
53
+
54
+
55
  ENTRYPOINT ["/bin/sh", "/app/start.sh"]
56
  # CMD ["/bin/readeck","serve", "-config", "/app/readeck/config.toml"]