mirror of
https://github.com/status-im/status-python-sdk.git
synced 2026-08-30 21:51:14 +00:00
Dockerfile: split dependency download layer
requirements should be copy first to avoid downloading everytime
excluding example config from docker
Signed-off-by: apentori <pentori.alexis@proton.me>
This commit is contained in:
@@ -9,3 +9,6 @@ __pycache__/
|
||||
# Status Bot
|
||||
uploads/
|
||||
bot/docs
|
||||
|
||||
config.yaml
|
||||
.env
|
||||
|
||||
+4
-1
@@ -1,10 +1,13 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
COPY requirements.txt .
|
||||
COPY bot/requirements.txt bot/requirements.txt
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt \
|
||||
&& if [ -f bot/requirements.txt ]; then pip install --no-cache-dir -r bot/requirements.txt; fi
|
||||
|
||||
COPY . .
|
||||
|
||||
ENTRYPOINT ["python", "monitor.py"]
|
||||
CMD []
|
||||
|
||||
Reference in New Issue
Block a user