1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| FROM python:3.10-slim
COPY pyproject.toml pdm.lock /project/ WORKDIR /project
RUN pip install -U pip setuptools wheel RUN pip install pdm
RUN pdm install COPY . .
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates curl gnupg && \ curl -sLf --retry 3 --tlsv1.2 --proto "=https" 'https://packages.doppler.com/public/cli/gpg.DE2A7741A397C129.key' | apt-key add - && \ echo "deb https://packages.doppler.com/public/cli/deb/debian any-version main" | tee /etc/apt/sources.list.d/doppler-cli.list && \ apt-get update && \ apt-get -y install doppler ARG DOPPLER_TOKEN ENV DOPPLER_TOKEN=$DOPPLER_TOKEN EXPOSE 8000 CMD ["pdm", "run", "start"]
|