Spaces:
Sleeping
Sleeping
parent path
Browse files- Dockerfile +3 -5
- main.py +2 -1
Dockerfile
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
#### Base OS ####
|
2 |
-
|
3 |
FROM debian:latest AS base
|
4 |
|
5 |
RUN apt-get update \
|
@@ -17,14 +16,13 @@ ENV HOME=/home/user \
|
|
17 |
|
18 |
WORKDIR $HOME
|
19 |
|
20 |
-
COPY --chown=user pup .
|
21 |
-
|
22 |
CMD ["bash"]
|
23 |
|
24 |
|
25 |
-
####
|
|
|
26 |
|
27 |
-
|
28 |
|
29 |
RUN $PUP
|
30 |
|
|
|
1 |
#### Base OS ####
|
|
|
2 |
FROM debian:latest AS base
|
3 |
|
4 |
RUN apt-get update \
|
|
|
16 |
|
17 |
WORKDIR $HOME
|
18 |
|
|
|
|
|
19 |
CMD ["bash"]
|
20 |
|
21 |
|
22 |
+
#### Puppy ####
|
23 |
+
FROM base AS puppy
|
24 |
|
25 |
+
COPY --chown=user pup .
|
26 |
|
27 |
RUN $PUP
|
28 |
|
main.py
CHANGED
@@ -45,8 +45,9 @@ def files_in_folder(path: str):
|
|
45 |
axis=1,
|
46 |
)
|
47 |
|
|
|
48 |
res.loc[-1] = [
|
49 |
-
f"<a href=/files/{
|
50 |
"",
|
51 |
"",
|
52 |
2,
|
|
|
45 |
axis=1,
|
46 |
)
|
47 |
|
48 |
+
parent_path = path.rsplit("/", 1)[0]
|
49 |
res.loc[-1] = [
|
50 |
+
f"<a href=/files/{parent_path}/>..</a>",
|
51 |
"",
|
52 |
"",
|
53 |
2,
|