File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ WORKDIR /app
2424
2525# Instala Python y pip
2626RUN 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
3231COPY ./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
3737COPY --from=publish /app/publish .
3838ENTRYPOINT ["dotnet" , "TelegramDownloader.dll" ]
You can’t perform that action at this time.
0 commit comments