Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
CHANGED
@@ -7,6 +7,20 @@ WORKDIR /app
|
|
7 |
# Copy the current directory contents into the container at /app
|
8 |
COPY . /app
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
# Install system dependencies
|
11 |
RUN apt-get update && apt-get install -y \
|
12 |
git \
|
|
|
7 |
# Copy the current directory contents into the container at /app
|
8 |
COPY . /app
|
9 |
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
RUN useradd -m -u 1000 user
|
14 |
+
USER user
|
15 |
+
ENV HOME=/home/user \
|
16 |
+
PATH=/home/user/.local/bin:$PATH
|
17 |
+
|
18 |
+
WORKDIR $HOME/app
|
19 |
+
|
20 |
+
COPY --chown=user . $HOME/app
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
# Install system dependencies
|
25 |
RUN apt-get update && apt-get install -y \
|
26 |
git \
|