Spaces:
Running
Running
ykxVK8yL5L
commited on
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
FROM ykxvk8yl5l/alist as builder
|
2 |
|
3 |
FROM ubuntu:22.04
|
4 |
-
|
5 |
|
6 |
-
|
7 |
|
8 |
# Set up a new user named "user" with user ID 1000
|
9 |
RUN useradd -m -u 1000 user
|
@@ -18,9 +18,9 @@ ENV HOME=/home/user \
|
|
18 |
# Set the working directory to the user's home directory
|
19 |
WORKDIR $HOME/alist
|
20 |
|
21 |
-
|
22 |
|
23 |
-
COPY --chown=user --from=builder /opt/alist/alist $HOME/alist
|
24 |
|
25 |
RUN chmod +x $HOME/alist/alist
|
26 |
|
|
|
1 |
+
#FROM ykxvk8yl5l/alist as builder
|
2 |
|
3 |
FROM ubuntu:22.04
|
4 |
+
ADD https://github.com/ykxVK8yL5L/alist/releases/download/latest/alist-linux-amd64.tar.gz /opt/alist/
|
5 |
|
6 |
+
RUN chmod 777 /opt/alist/alist
|
7 |
|
8 |
# Set up a new user named "user" with user ID 1000
|
9 |
RUN useradd -m -u 1000 user
|
|
|
18 |
# Set the working directory to the user's home directory
|
19 |
WORKDIR $HOME/alist
|
20 |
|
21 |
+
RUN copy /opt/alist/alist $HOME/alist
|
22 |
|
23 |
+
#COPY --chown=user --from=builder /opt/alist/alist $HOME/alist
|
24 |
|
25 |
RUN chmod +x $HOME/alist/alist
|
26 |
|