FROM docker:latest

RUN apk add --no-cache python3 py3-pip gcc python3-dev libc-dev zlib-dev
WORKDIR /workspace
COPY worker/requirements.txt .
RUN pip config set global.break-system-packages true
RUN pip install -r requirements.txt

COPY registry ./registry
COPY worker ./worker

ENV PATH "$PATH:/workspace/worker/scripts"
