ci: use atlasbot base image for deps
This commit is contained in:
parent
a807501ba4
commit
f7123a08b8
@ -1,17 +1,13 @@
|
|||||||
FROM registry.bstein.dev/bstein/python:3.12-slim AS base
|
FROM registry.bstein.dev/bstein/atlasbot-base:0.1.0 AS base
|
||||||
|
|
||||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||||
PYTHONUNBUFFERED=1
|
PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY requirements.txt /app/requirements.txt
|
|
||||||
RUN pip install --no-cache-dir -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 -r /app/requirements-dev.txt
|
|
||||||
COPY tests /app/tests
|
COPY tests /app/tests
|
||||||
COPY scripts /app/scripts
|
COPY scripts /app/scripts
|
||||||
|
|
||||||
|
|||||||
9
Dockerfile.base
Normal file
9
Dockerfile.base
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM registry.bstein.dev/bstein/python:3.12-slim
|
||||||
|
|
||||||
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||||
|
PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY requirements.txt /app/requirements.txt
|
||||||
|
COPY requirements-dev.txt /app/requirements-dev.txt
|
||||||
|
RUN pip install --no-cache-dir -r /app/requirements.txt -r /app/requirements-dev.txt
|
||||||
Loading…
x
Reference in New Issue
Block a user