Create Dockerfile
Browse files- Dockerfile +24 -0
Dockerfile
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM node:latest
|
2 |
+
|
3 |
+
RUN apt-get update && \
|
4 |
+
apt-get install -y neofetch ffmpeg curl python3 python3-pip python3-venv && \
|
5 |
+
rm -rf /var/lib/apt/lists/*
|
6 |
+
|
7 |
+
WORKDIR /app
|
8 |
+
|
9 |
+
COPY package.json .
|
10 |
+
|
11 |
+
RUN npm install
|
12 |
+
|
13 |
+
# Create and activate a virtual environment
|
14 |
+
RUN python3 -m venv /venv
|
15 |
+
ENV PATH="/venv/bin:$PATH"
|
16 |
+
|
17 |
+
# Install speedtest-cli within the virtual environment
|
18 |
+
RUN pip install --no-cache-dir speedtest-cli
|
19 |
+
|
20 |
+
COPY . .
|
21 |
+
|
22 |
+
EXPOSE 7860
|
23 |
+
|
24 |
+
CMD ["npm", "start"]
|