|
FROM python:3.10-slim |
|
|
|
RUN apt-get update && apt-get install -y git sed |
|
|
|
RUN git clone https://github.com/oDaiSuno/retool2API.git /app |
|
|
|
WORKDIR /app |
|
|
|
RUN pip install --no-cache-dir -r requirements.txt |
|
|
|
RUN --mount=type=secret,id=RETOOL_JSON,mode=0444,required=true \ |
|
cat /run/secrets/RETOOL_JSON > retool.json && chmod 777 retool.json |
|
|
|
RUN --mount=type=secret,id=API_KEY,mode=0444,required=true \ |
|
cat /run/secrets/API_KEY > client_api_keys.json && chmod 777 client_api_keys.json |
|
|
|
EXPOSE 8000 |
|
|
|
CMD ["python", "main.py"] |