Spaces:
Sleeping
Sleeping
Sagar Thacker
commited on
Commit
·
6d3145a
1
Parent(s):
cfac11e
initial commit
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
|
3 |
+
ARG GRADIO_SERVER_PORT=7860
|
4 |
+
ENV GRADIO_SERVER_PORT=${GRADIO_SERVER_PORT}
|
5 |
+
|
6 |
+
WORKDIR /code
|
7 |
+
|
8 |
+
COPY ["Pipfile", "Pipfile.lock", "./code/"]
|
9 |
+
|
10 |
+
RUN cd code && pip install pipenv && pipenv install --system --deploy --ignore-pipfile
|
11 |
+
|
12 |
+
COPY ["model.py", "app.py", "/code/"]
|
13 |
+
COPY ["models", "/code/models/"]
|
14 |
+
COPY ["data", "/code/data/"]
|
15 |
+
|
16 |
+
CMD ["gradio", "/code/app.py"]
|