first
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
FROM python:3.12-slim AS base
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PIP_NO_CACHE_DIR=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends curl build-essential \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY packages/asf-domain /packages/asf-domain
|
||||
COPY packages/asf-events /packages/asf-events
|
||||
COPY packages/asf-connectors /packages/asf-connectors
|
||||
|
||||
RUN pip install --no-cache-dir \
|
||||
-e /packages/asf-domain \
|
||||
-e /packages/asf-events \
|
||||
-e /packages/asf-connectors
|
||||
|
||||
COPY services/asf-worker/requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY services/asf-worker/app ./app
|
||||
|
||||
CMD ["python", "-m", "app.worker"]
|
||||
Reference in New Issue
Block a user