Spaces:
Running
Running
ykxVK8yL5L
commited on
Create Dockerfile
Browse files- Dockerfile +25 -0
Dockerfile
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ykxvk8yl5l/fast-webdav:client as builder
|
2 |
+
|
3 |
+
FROM ubuntu:22.04
|
4 |
+
|
5 |
+
# Set up a new user named "user" with user ID 1000
|
6 |
+
RUN useradd -m -u 1000 user
|
7 |
+
|
8 |
+
# Switch to the "user" user
|
9 |
+
USER user
|
10 |
+
|
11 |
+
# Set home to the user's home directory
|
12 |
+
ENV HOME=/home/user \
|
13 |
+
PATH=/home/user/.local/bin:$PATH
|
14 |
+
|
15 |
+
# Set the working directory to the user's home directory
|
16 |
+
WORKDIR $HOME/app
|
17 |
+
|
18 |
+
COPY --chown=user --from=builder /usr/bin/fast-webdav /home/user/.local/bin
|
19 |
+
|
20 |
+
RUN chmod +x /home/user/.local/bin/fast-webdav
|
21 |
+
|
22 |
+
# CMD ["bash", "alist", "server"]
|
23 |
+
CMD ["/usr/bin/fast-webdav", "--host", "0.0.0.0"]
|
24 |
+
|
25 |
+
EXPOSE 9867
|