FROM docker:latest

RUN apk add --no-cache python3 py3-pip gcc python3-dev libc-dev zlib-dev
WORKDIR /workspace
COPY registry/requirements.txt .

RUN pip config set global.break-system-packages true
RUN pip install -r requirements.txt

COPY common ./common
COPY registry ./registry
COPY worker ./worker
COPY healthchecker ./healthchecker

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