Spaces:
Runtime error
Runtime error
thejagstudio
commited on
Commit
•
b7e1e68
1
Parent(s):
64a9e22
Update Dockerfile
Browse files- Dockerfile +3 -40
Dockerfile
CHANGED
@@ -1,44 +1,7 @@
|
|
1 |
FROM ubuntu:24.04
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
RUN rm -f /etc/apt/sources.list.d/*.list && \
|
6 |
-
apt-get update && apt-get install -y --no-install-recommends \
|
7 |
-
curl \
|
8 |
-
ca-certificates \
|
9 |
-
sudo \
|
10 |
-
git \
|
11 |
-
wget \
|
12 |
-
procps \
|
13 |
-
git-lfs \
|
14 |
-
zip \
|
15 |
-
unzip \
|
16 |
-
htop \
|
17 |
-
vim \
|
18 |
-
nano \
|
19 |
-
bzip2 \
|
20 |
-
libx11-6 \
|
21 |
-
build-essential \
|
22 |
-
libsndfile-dev \
|
23 |
-
software-properties-common \
|
24 |
-
&& rm -rf /var/lib/apt/lists/*
|
25 |
-
|
26 |
-
RUN add-apt-repository ppa:flexiondotorg/nvtop && \
|
27 |
-
apt-get upgrade -y && \
|
28 |
-
apt-get install -y --no-install-recommends nvtop
|
29 |
-
|
30 |
-
RUN apt install -y python3
|
31 |
-
RUN apt install -y python3-pip
|
32 |
-
|
33 |
-
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
|
34 |
-
apt-get install -y nodejs && \
|
35 |
-
npm install -g configurable-http-proxy
|
36 |
-
WORKDIR /app
|
37 |
-
|
38 |
-
|
39 |
-
WORKDIR $HOME/app
|
40 |
-
COPY requirements.txt ./
|
41 |
-
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
42 |
COPY . .
|
43 |
EXPOSE 7860
|
44 |
CMD ["python","./manage.py","runserver","0.0.0.0:7860"]
|
|
|
1 |
FROM ubuntu:24.04
|
2 |
+
WORKDIR /code
|
3 |
+
COPY ./requirements.txt /code/requirements.txt
|
4 |
+
RUN pip install -r /code/requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
COPY . .
|
6 |
EXPOSE 7860
|
7 |
CMD ["python","./manage.py","runserver","0.0.0.0:7860"]
|