Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +10 -10
Dockerfile
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
-
#
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
WORKDIR /
|
6 |
-
|
|
|
7 |
RUN useradd -m -u 1000 user
|
8 |
USER user
|
9 |
ENV HOME=/home/user \
|
10 |
PATH=/home/user/.local/bin:$PATH
|
|
|
11 |
WORKDIR $HOME/app
|
|
|
12 |
COPY --chown=user . $HOME/app
|
13 |
|
14 |
-
|
15 |
-
COPY --chown=user:user . .
|
16 |
-
# Comando para ejecutar tu aplicación (ajusta según tu configuración)
|
17 |
-
CMD ["python3", "app.py"]
|
|
|
1 |
+
# you will also find guides on how best to write your Dockerfile
|
2 |
+
|
3 |
+
FROM python:3.9
|
4 |
+
|
5 |
+
WORKDIR /code
|
6 |
+
|
7 |
+
RUN pip install --no-cache-dir gradio
|
8 |
RUN useradd -m -u 1000 user
|
9 |
USER user
|
10 |
ENV HOME=/home/user \
|
11 |
PATH=/home/user/.local/bin:$PATH
|
12 |
+
|
13 |
WORKDIR $HOME/app
|
14 |
+
|
15 |
COPY --chown=user . $HOME/app
|
16 |
|
17 |
+
CMD ["python3", "app.py"]
|
|
|
|
|
|