Skip to content

Commit be4a2e1

Browse files
committed
chore: python virtual env
1 parent 0b5b9af commit be4a2e1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

TelegramDownloader/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ WORKDIR /app
2424

2525
# Instala Python y pip
2626
RUN apt-get update && \
27-
apt-get install -y python3 python3-pip && \
27+
apt-get install -y python3 python3-pip python3-venv && \
2828
ln -s /usr/bin/python3 /usr/bin/python && \
2929
rm -rf /var/lib/apt/lists/*
3030

31-
# Copia y instala los requirements de WebDav
3231
COPY ./WebDav /app/WebDav
33-
RUN ls -l /app/WebDav
34-
RUN python3 -m pip install --upgrade pip && \
35-
python3 -m pip install -r /app/WebDav/requirements.txt
32+
RUN python3 -m venv /app/venv
33+
RUN ln -sf /app/venv/bin/python /usr/bin/python
34+
RUN /app/venv/bin/pip install --upgrade pip
35+
RUN /app/venv/bin/pip install -r /app/WebDav/requirements.txt
3636

3737
COPY --from=publish /app/publish .
3838
ENTRYPOINT ["dotnet", "TelegramDownloader.dll"]

0 commit comments

Comments
 (0)