File size: 522 Bytes
f76e26a 058007e f76e26a 058007e f76e26a 2afb0ab |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
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"] |