1
0
mirror of https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git synced 2025-07-28 09:01:33 +00:00

Smaller Docker Image

This commit is contained in:
2021-11-06 04:27:27 +00:00
parent e1c714f6ce
commit 7785e153f4
3 changed files with 38 additions and 165 deletions

View File

@@ -1,9 +1,14 @@
FROM python:3.9-buster
FROM python:3.9-buster AS builder
COPY requirements.txt /requirements.txt
RUN pip install --user -r requirements.txt
FROM python:3.9-slim
COPY --from=builder /root/.local /root/.local
COPY requirements.txt ./
RUN pip install --no-cache-dir -U -r requirements.txt
COPY . .