Spaces:
Running
Running
brian-xetdata
commited on
Commit
•
ba9cd3c
1
Parent(s):
f89d416
Fixes
Browse files- Dockerfile +3 -5
- wrapper.sh +1 -1
Dockerfile
CHANGED
@@ -1,14 +1,12 @@
|
|
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
|
10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
11 |
|
12 |
-
COPY . /app
|
13 |
|
14 |
-
CMD "
|
|
|
1 |
FROM python:3.9
|
2 |
|
|
|
|
|
3 |
ENV Path="/home/user/.local/bin:$PATH"
|
4 |
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
COPY ./requirements.txt requirements.txt
|
8 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
9 |
|
10 |
+
COPY --chmod=0755 . /app
|
11 |
|
12 |
+
CMD "/app/wrapper.sh"
|
wrapper.sh
CHANGED
@@ -8,4 +8,4 @@ flask --app proxy run --host 0.0.0.0 --port 7860 &
|
|
8 |
|
9 |
wait -n
|
10 |
|
11 |
-
exit $?
|
|
|
8 |
|
9 |
wait -n
|
10 |
|
11 |
+
exit $?
|