niuniulin6 commited on
Commit
65c30ef
·
verified ·
1 Parent(s): 9667765

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +31 -0
  2. README.md +11 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9.5-slim-buster
2
+ LABEL author="Lan"
3
+ LABEL email="vast@tom.com"
4
+
5
+
6
+ RUN chmod -R 777 /var
7
+ RUN chmod 777 /etc/timezone
8
+
9
+ RUN set -x && \
10
+ apt-get update && \
11
+ apt-get install --no-install-recommends -y git && \
12
+ git config --global user.email "filecodebox@@users.noreply.github.com" && \
13
+ git config --global user.name "filecodebox" && \
14
+ git config --global http.postBuffer 524288000
15
+
16
+
17
+ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
18
+ RUN echo 'Asia/Shanghai' >/etc/timezone
19
+
20
+
21
+ RUN useradd -m -u 1000 user
22
+ USER user
23
+ ENV PATH="/home/user/.local/bin:$PATH"
24
+
25
+
26
+ RUN git clone https://github.com/vastsa/FileCodeBox /home/user/app
27
+
28
+ WORKDIR /home/user/app
29
+ RUN pip install -r requirements.txt
30
+ EXPOSE 12345
31
+ CMD ["python","main.py"]
README.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Filecodebox
3
+ emoji: 🏆
4
+ colorFrom: indigo
5
+ colorTo: pink
6
+ sdk: docker
7
+ pinned: false
8
+ app_port: 12345
9
+ ---
10
+
11
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference