Commit ·
f169d2b
1
Parent(s): 83e7994
Fixed docker building
Browse files- CutLER +1 -0
- Dockerfile +9 -9
- app.py +1 -1
CutLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Subproject commit a6f695f69f4cf1ca2845f3295c3608c7b4e31c11
|
Dockerfile
CHANGED
|
@@ -5,15 +5,6 @@ WORKDIR /code
|
|
| 5 |
# Install git
|
| 6 |
RUN apt-get update && apt-get install -y git
|
| 7 |
|
| 8 |
-
# Install CutLER
|
| 9 |
-
RUN git clone --recursive https://github.com/Ad-Visual/CutLER /code/CutLER
|
| 10 |
-
|
| 11 |
-
RUN pip install --no-cache-dir --upgrade -r /code/CutLER/requirements.txt
|
| 12 |
-
|
| 13 |
-
COPY ./requirements.txt /code/requirements.txt
|
| 14 |
-
|
| 15 |
-
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 16 |
-
|
| 17 |
RUN useradd -m -u 1000 user
|
| 18 |
|
| 19 |
USER user
|
|
@@ -23,6 +14,15 @@ ENV HOME=/home/user \
|
|
| 23 |
|
| 24 |
WORKDIR $HOME/app
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
COPY --chown=user . $HOME/app
|
| 27 |
|
| 28 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 5 |
# Install git
|
| 6 |
RUN apt-get update && apt-get install -y git
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
RUN useradd -m -u 1000 user
|
| 9 |
|
| 10 |
USER user
|
|
|
|
| 14 |
|
| 15 |
WORKDIR $HOME/app
|
| 16 |
|
| 17 |
+
# Install CutLER
|
| 18 |
+
RUN git clone --recursive https://github.com/Ad-Visual/CutLER $HOME/app/CutLER
|
| 19 |
+
|
| 20 |
+
RUN pip install --no-cache-dir --upgrade -r $HOME/app/CutLER/requirements.txt
|
| 21 |
+
|
| 22 |
+
COPY ./requirements.txt $HOME/app/requirements.txt
|
| 23 |
+
|
| 24 |
+
RUN pip install --no-cache-dir --upgrade -r $HOME/app/requirements.txt
|
| 25 |
+
|
| 26 |
COPY --chown=user . $HOME/app
|
| 27 |
|
| 28 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
app.py
CHANGED
|
@@ -140,4 +140,4 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
| 140 |
|
| 141 |
if __name__ == '__main__':
|
| 142 |
# server api
|
| 143 |
-
uvicorn.run("
|
|
|
|
| 140 |
|
| 141 |
if __name__ == '__main__':
|
| 142 |
# server api
|
| 143 |
+
uvicorn.run("app:app", host="0.0.0.0", port=8000, reload=True)
|