uncloseai.com/languages/python/Dockerfile

14 lines
340 B
Docker

FROM alpine:latest
WORKDIR /app
COPY requirements.txt /app/requirements.txt
COPY examples.py /app/examples.py
RUN chmod +x /app/examples.py
RUN apk --no-cache add python3 py3-pip ca-certificates \
&& pip3 install --break-system-packages -r /app/requirements.txt \
&& rm -rf /var/cache/apk/*
CMD ["python3", "/app/examples.py"]