Spaces:
Configuration error

hustzhxy commited on
Commit
ef9efc8
·
1 Parent(s): 7aae22d

ADD application file

Browse files
Files changed (3) hide show
  1. Dockerfile +12 -9
  2. Dockerfile - 副本 +13 -0
  3. README.md +1 -0
Dockerfile CHANGED
@@ -1,13 +1,16 @@
1
- FROM python:3.9
2
 
3
- RUN useradd -m -u 1000 user
4
- USER user
5
- ENV PATH="/home/user/.local/bin:$PATH"
6
 
7
- WORKDIR /app
 
 
8
 
9
- COPY --chown=user ./requirements.txt requirements.txt
10
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
 
11
 
12
- COPY --chown=user . /app
13
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
1
+ FROM openlistteam/openlist:latest
2
 
3
+ USER root
 
 
4
 
5
+ RUN mkdir -p /opt/openlist/data && \
6
+ chown -R 0:0 /opt/openlist/data && \
7
+ chmod -R 777 /opt/openlist/data
8
 
9
+ EXPOSE 5244/tcp
10
+ ENV TZ=Asia/Shanghai
11
+ ENV PORT=5244
12
 
13
+ VOLUME ["/opt/openlist/data"]
14
+
15
+ HEALTHCHECK --interval=30s --timeout=3s \
16
+ CMD curl -f http://localhost:5244 || exit 1
Dockerfile - 副本 ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
+
7
+ WORKDIR /app
8
+
9
+ COPY --chown=user ./requirements.txt requirements.txt
10
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
+
12
+ COPY --chown=user . /app
13
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
README.md CHANGED
@@ -5,6 +5,7 @@ colorFrom: green
5
  colorTo: purple
6
  sdk: docker
7
  pinned: false
 
8
  license: apache-2.0
9
  short_description: mmdsoft
10
  ---
 
5
  colorTo: purple
6
  sdk: docker
7
  pinned: false
8
+ app_port:5244
9
  license: apache-2.0
10
  short_description: mmdsoft
11
  ---