Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +8 -6
Dockerfile
CHANGED
@@ -1,7 +1,11 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
RUN
|
4 |
-
|
|
|
|
|
|
|
|
|
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/
|