Spaces:
Sleeping
Sleeping
Delete Dockerfile
Browse files- Dockerfile +0 -28
Dockerfile
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
FROM python:3.9
|
2 |
-
|
3 |
-
# The two following lines are requirements for the Dev Mode to be functional
|
4 |
-
# Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
|
5 |
-
RUN useradd -m -u 1000 user
|
6 |
-
WORKDIR /app
|
7 |
-
|
8 |
-
COPY --chown=user ./requirements.txt /app/requirements.txt
|
9 |
-
|
10 |
-
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
11 |
-
|
12 |
-
# COPY --chown=user . /app
|
13 |
-
|
14 |
-
# Switch to the "user" user
|
15 |
-
USER user
|
16 |
-
|
17 |
-
# Set home to the user's home directory
|
18 |
-
ENV HOME=/home/user
|
19 |
-
ENV PATH=/home/user/.local/bin:$PATH
|
20 |
-
|
21 |
-
# Set the working directory to the user's home directory
|
22 |
-
WORKDIR $HOME/app
|
23 |
-
|
24 |
-
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
25 |
-
COPY --chown=user . $HOME/app
|
26 |
-
|
27 |
-
|
28 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|