1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-07-23 22:51:39 +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,7 +1,16 @@
FROM python:3.9-buster
FROM python:3.9-buster AS builder
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY requirements.txt /requirements.txt
RUN pip install --user -r requirements.txt
FROM python:3.9-slim
COPY --from=builder /root/.local /root/.local
RUN pip install --no-cache-dir black
COPY . .
# CMD [ "python", "./bot.py" ]