Spaces:
Running
on
A10G
Running
on
A10G
dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10.13
|
2 |
+
WORKDIR /code
|
3 |
+
COPY ./requirements.txt /code/requirements.txt
|
4 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
5 |
+
RUN useradd -m -u 1000 user
|
6 |
+
USER user
|
7 |
+
ENV HOME=/home/user \
|
8 |
+
PATH=/home/user/.local/bin:$PATH \
|
9 |
+
PYTHONPATH=$HOME/app \
|
10 |
+
PYTHONUNBUFFERED=1 \
|
11 |
+
SYSTEM=spaces
|
12 |
+
|
13 |
+
WORKDIR $HOME/app
|
14 |
+
COPY --chown=user . $HOME/app
|
15 |
+
CMD ["python", "app.py"]
|