HuggingFace0920 commited on
Commit
8397318
·
verified ·
1 Parent(s): f717ba9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -1,7 +1,11 @@
1
- FROM alpine:latest
2
 
3
- RUN apk add --no-cache python3 py3-pip curl tar gzip bash jq libc6-compat
4
- RUN adduser -D -u 1000 user
 
 
 
 
5
  RUN mkdir -p /home/user/data && chown -R user:user /home/user/data
6
 
7
  ENV HOME=/home/user \
@@ -17,9 +21,7 @@ RUN wget -q https://github.com/OpenListTeam/OpenList/releases/download/beta/open
17
  tar -xzf openlist-linux-amd64.tar.gz && \
18
  find . -type f -name "openlist" -exec chmod +x {} \; && \
19
  find . -type f -name "openlist" -exec mv {} . \; && \
20
- rm -rf openlist-linux-amd64.tar.gz *linux-amd64* && \
21
- file ./openlist && \
22
- ./openlist --help || echo "openlist binary check failed"
23
 
24
  COPY --chown=user . $HOME/app
25
  COPY --chown=user sync_data.sh $HOME/app/
 
1
+ FROM ubuntu:22.04
2
 
3
+ RUN apt-get update && apt-get install -y \
4
+ python3 python3-pip python3-venv \
5
+ curl tar gzip bash jq \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ RUN adduser --disabled-password --gecos '' --uid 1000 user
9
  RUN mkdir -p /home/user/data && chown -R user:user /home/user/data
10
 
11
  ENV HOME=/home/user \
 
21
  tar -xzf openlist-linux-amd64.tar.gz && \
22
  find . -type f -name "openlist" -exec chmod +x {} \; && \
23
  find . -type f -name "openlist" -exec mv {} . \; && \
24
+ rm -rf openlist-linux-amd64.tar.gz *linux-amd64*
 
 
25
 
26
  COPY --chown=user . $HOME/app
27
  COPY --chown=user sync_data.sh $HOME/app/