Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
FROM ubuntu:22.04
|
2 |
ARG app
|
3 |
-
RUN apt-get update && apt-get install -y aria2
|
4 |
-
|
5 |
WORKDIR /app
|
6 |
COPY . .
|
7 |
-
RUN
|
|
|
|
|
|
|
|
|
8 |
COPY ${app} ${app}
|
9 |
COPY config.json data/config.json
|
10 |
RUN chmod +x ${app}
|
|
|
1 |
FROM ubuntu:22.04
|
2 |
ARG app
|
|
|
|
|
3 |
WORKDIR /app
|
4 |
COPY . .
|
5 |
+
RUN apt-get update && \
|
6 |
+
apt-get install -y curl jq tar aria2 && \
|
7 |
+
curl -sL https://api.github.com/repos/alist-org/alist/releases/latest | jq -r '.assets[] | select(.name | test("linux-amd64.tar.gz$")) | .browser_download_url' | xargs curl -L | tar -zxvf - -C ./ && \
|
8 |
+
chmod +x start.sh && mkdir -p local && chmod 777 local && \
|
9 |
+
mkdir -p data && chmod 777 data
|
10 |
COPY ${app} ${app}
|
11 |
COPY config.json data/config.json
|
12 |
RUN chmod +x ${app}
|