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:
@@ -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" ]
|
||||
|
Reference in New Issue
Block a user