Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +9 -8
Dockerfile
CHANGED
@@ -1,6 +1,15 @@
|
|
1 |
# Use Python 3.10 as base image
|
2 |
FROM python:3.10-slim
|
|
|
|
|
|
|
|
|
|
|
3 |
|
|
|
|
|
|
|
|
|
4 |
# Install system dependencies and uv
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
poppler-utils \
|
@@ -10,15 +19,7 @@ RUN apt-get update && apt-get install -y \
|
|
10 |
&& echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc \
|
11 |
&& . ~/.bashrc
|
12 |
|
13 |
-
# Set up a new user named "user" with user ID 1000
|
14 |
-
RUN useradd -m -u 1000 user
|
15 |
-
|
16 |
-
# Switch to the "user" user
|
17 |
-
USER user
|
18 |
|
19 |
-
# Set home to the user's home directory
|
20 |
-
ENV HOME=/home/user \
|
21 |
-
PATH=/home/user/.local/bin:$PATH
|
22 |
|
23 |
# Set the working directory to the user's home directory
|
24 |
WORKDIR $HOME/app
|
|
|
1 |
# Use Python 3.10 as base image
|
2 |
FROM python:3.10-slim
|
3 |
+
# Set up a new user named "user" with user ID 1000
|
4 |
+
RUN useradd -m -u 1000 user
|
5 |
+
|
6 |
+
# Switch to the "user" user
|
7 |
+
USER user
|
8 |
|
9 |
+
# Set home to the user's home directory
|
10 |
+
ENV HOME=/home/user \
|
11 |
+
PATH=/home/user/.local/bin:$PATH
|
12 |
+
|
13 |
# Install system dependencies and uv
|
14 |
RUN apt-get update && apt-get install -y \
|
15 |
poppler-utils \
|
|
|
19 |
&& echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc \
|
20 |
&& . ~/.bashrc
|
21 |
|
|
|
|
|
|
|
|
|
|
|
22 |
|
|
|
|
|
|
|
23 |
|
24 |
# Set the working directory to the user's home directory
|
25 |
WORKDIR $HOME/app
|