Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -8
Dockerfile
CHANGED
@@ -1,13 +1,5 @@
|
|
1 |
FROM python:3.10.12
|
2 |
|
3 |
-
WORKDIR /app
|
4 |
-
|
5 |
-
COPY ./requirements.txt /app/requirements.txt
|
6 |
-
COPY ./packages.txt /app/packages.txt
|
7 |
-
|
8 |
-
RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
|
9 |
-
RUN pip3 install --no-cache-dir -r /app/requirements.txt
|
10 |
-
|
11 |
# User
|
12 |
RUN useradd -m -u 1000 user
|
13 |
USER user
|
@@ -17,6 +9,13 @@ ENV PATH $HOME/.local/bin:$PATH
|
|
17 |
WORKDIR $HOME
|
18 |
RUN mkdir app
|
19 |
WORKDIR $HOME/app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
COPY --chown=user . $HOME/app
|
21 |
|
22 |
EXPOSE 8501
|
|
|
1 |
FROM python:3.10.12
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
# User
|
4 |
RUN useradd -m -u 1000 user
|
5 |
USER user
|
|
|
9 |
WORKDIR $HOME
|
10 |
RUN mkdir app
|
11 |
WORKDIR $HOME/app
|
12 |
+
|
13 |
+
COPY ./requirements.txt /app/requirements.txt
|
14 |
+
COPY ./packages.txt /app/packages.txt
|
15 |
+
|
16 |
+
RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
|
17 |
+
RUN pip3 install --no-cache-dir -r /app/requirements.txt
|
18 |
+
|
19 |
COPY --chown=user . $HOME/app
|
20 |
|
21 |
EXPOSE 8501
|