ci(atlasbot): keep dev deps out of runtime image
This commit is contained in:
parent
a1db462420
commit
111038a571
@ -1,17 +1,20 @@
|
|||||||
FROM registry.bstein.dev/bstein/python:3.12-slim AS base
|
FROM registry.bstein.dev/bstein/python:3.12-slim AS base
|
||||||
|
|
||||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||||
PYTHONUNBUFFERED=1
|
PYTHONUNBUFFERED=1 \
|
||||||
|
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
||||||
|
PIP_DEFAULT_TIMEOUT=60
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY requirements.txt /app/requirements.txt
|
COPY requirements.txt /app/requirements.txt
|
||||||
COPY requirements-dev.txt /app/requirements-dev.txt
|
|
||||||
COPY pyproject.toml /app/pyproject.toml
|
COPY pyproject.toml /app/pyproject.toml
|
||||||
RUN pip install --no-cache-dir -r /app/requirements.txt -r /app/requirements-dev.txt
|
RUN pip install --no-cache-dir --retries 10 -r /app/requirements.txt
|
||||||
|
|
||||||
COPY atlasbot /app/atlasbot
|
COPY atlasbot /app/atlasbot
|
||||||
|
|
||||||
FROM base AS test
|
FROM base AS test
|
||||||
|
COPY requirements-dev.txt /app/requirements-dev.txt
|
||||||
|
RUN pip install --no-cache-dir --retries 10 -r /app/requirements-dev.txt
|
||||||
COPY testing /app/testing
|
COPY testing /app/testing
|
||||||
COPY tests /app/tests
|
COPY tests /app/tests
|
||||||
COPY scripts /app/scripts
|
COPY scripts /app/scripts
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user