HudsonArauj commited on
Commit
1b92e35
Β·
1 Parent(s): 862eb8b

update docker

Browse files
Dockerfile CHANGED
@@ -1,17 +1,9 @@
1
- #
2
- FROM python:3.9
3
 
4
- #
5
- WORKDIR /code
 
 
 
6
 
7
- #
8
- COPY ./requirements.txt /code/requirements.txt
9
-
10
- #
11
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
-
13
- #
14
- COPY ./app /code/app
15
-
16
- #
17
- RUN ["python", "app/app.py"]
 
1
+ FROM python:3.8-slim
 
2
 
3
+ WORKDIR /usr/src/app
4
+ COPY . .
5
+ RUN pip install --no-cache-dir gradio
6
+ EXPOSE 7860
7
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
8
 
9
+ CMD ["python", "app.py"]
 
 
 
 
 
 
 
 
 
 
app/app.py β†’ app.py RENAMED
File without changes
{app/modelos β†’ modelos}/lenet-modular2024-06-26.pt RENAMED
File without changes
app/utils.py β†’ utils.py RENAMED
File without changes