pup-py commited on
Commit
35ce96b
1 Parent(s): 520cd28

parent path

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -5
  2. 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
- #### pixi, uv, python ####
 
26
 
27
- FROM base
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/{ROOT.parent}/>..</a>",
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,