Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -1,9 +1,12 @@
|
|
| 1 |
# Use uma imagem base que tenha Python e Node.js
|
| 2 |
FROM node:14
|
| 3 |
|
| 4 |
-
# Instale Python e
|
| 5 |
RUN apt-get update && apt-get install -y python3 python3-pip
|
| 6 |
|
|
|
|
|
|
|
|
|
|
| 7 |
# Crie um diretório de trabalho
|
| 8 |
WORKDIR /app
|
| 9 |
|
|
@@ -11,8 +14,8 @@ WORKDIR /app
|
|
| 11 |
COPY requirements.txt .
|
| 12 |
COPY app.py .
|
| 13 |
|
| 14 |
-
# Instale as dependências Python usando pip
|
| 15 |
-
RUN pip install -r requirements.txt
|
| 16 |
|
| 17 |
# Instale o WebTorrent globalmente usando npm
|
| 18 |
RUN npm install -g webtorrent
|
|
|
|
| 1 |
# Use uma imagem base que tenha Python e Node.js
|
| 2 |
FROM node:14
|
| 3 |
|
| 4 |
+
# Instale Python, pip e outras dependências
|
| 5 |
RUN apt-get update && apt-get install -y python3 python3-pip
|
| 6 |
|
| 7 |
+
# Crie um link simbólico para pip
|
| 8 |
+
RUN ln -s /usr/bin/pip3 /usr/bin/pip
|
| 9 |
+
|
| 10 |
# Crie um diretório de trabalho
|
| 11 |
WORKDIR /app
|
| 12 |
|
|
|
|
| 14 |
COPY requirements.txt .
|
| 15 |
COPY app.py .
|
| 16 |
|
| 17 |
+
# Instale as dependências Python usando python3 -m pip para garantir que o pip esteja corretamente identificado
|
| 18 |
+
RUN python3 -m pip install -r requirements.txt
|
| 19 |
|
| 20 |
# Instale o WebTorrent globalmente usando npm
|
| 21 |
RUN npm install -g webtorrent
|