Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +10 -0
Dockerfile
CHANGED
@@ -1,9 +1,19 @@
|
|
1 |
FROM python:3.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
RUN useradd -m -u 1000 user
|
3 |
USER user
|
4 |
ENV HOME=/home/user \
|
5 |
PATH=/home/user/.local/bin:$PATH
|
6 |
WORKDIR $HOME/app
|
|
|
|
|
7 |
COPY --chown=user . $HOME/app
|
8 |
COPY ./requirements.txt ~/app/requirements.txt
|
9 |
RUN pip install -r requirements.txt
|
|
|
1 |
FROM python:3.9
|
2 |
+
FROM node:19-slim
|
3 |
+
RUN apt-get update && \
|
4 |
+
apt-get install -y \
|
5 |
+
bash \
|
6 |
+
git git-lfs \
|
7 |
+
wget curl procps \
|
8 |
+
htop vim nano && \
|
9 |
+
rm -rf /var/lib/apt/lists/*
|
10 |
RUN useradd -m -u 1000 user
|
11 |
USER user
|
12 |
ENV HOME=/home/user \
|
13 |
PATH=/home/user/.local/bin:$PATH
|
14 |
WORKDIR $HOME/app
|
15 |
+
RUN chown 1000 $HOME/app
|
16 |
+
USER 1000
|
17 |
COPY --chown=user . $HOME/app
|
18 |
COPY ./requirements.txt ~/app/requirements.txt
|
19 |
RUN pip install -r requirements.txt
|