Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -4,6 +4,9 @@ FROM node:14
|
|
| 4 |
# Instale Python e pip
|
| 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
|
| 15 |
-
RUN
|
| 16 |
|
| 17 |
# Instale o WebTorrent globalmente usando npm
|
| 18 |
RUN npm install -g webtorrent
|
|
|
|
| 4 |
# Instale Python e pip
|
| 5 |
RUN apt-get update && apt-get install -y python3 python3-pip
|
| 6 |
|
| 7 |
+
# Certifique-se de que pip está no PATH
|
| 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 pip
|
| 18 |
+
RUN pip install -r requirements.txt
|
| 19 |
|
| 20 |
# Instale o WebTorrent globalmente usando npm
|
| 21 |
RUN npm install -g webtorrent
|