You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile.latest 960B

1 mese fa
1 giorno fa
1 mese fa
1 giorno fa
1 mese fa
1234567891011121314151617181920212223242526272829303132
  1. #FROM python:3.10-slim-bullseye
  2. FROM 139.224.254.18:5000/ssjl/python:3.10-slim-bullseye
  3. LABEL maintainer="foo@bar.com"
  4. ARG TZ='Asia/Shanghai'
  5. # RUN echo /etc/apt/sources.list
  6. #RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
  7. RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
  8. ENV BUILD_PREFIX=/app
  9. ADD . ${BUILD_PREFIX}
  10. RUN cd ${BUILD_PREFIX} \
  11. && cp config-template.json config.json \
  12. && /usr/local/bin/python -m pip install --no-cache --upgrade pip \
  13. && pip install --no-cache -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
  14. WORKDIR ${BUILD_PREFIX}
  15. ADD docker/entrypoint.sh /entrypoint.sh
  16. RUN chmod +x /entrypoint.sh \
  17. && mkdir -p /home/noroot \
  18. && groupadd -r noroot \
  19. && useradd -r -g noroot -s /bin/bash -d /home/noroot noroot \
  20. && chown -R noroot:noroot /home/noroot ${BUILD_PREFIX} /usr/local/lib
  21. USER noroot
  22. ENTRYPOINT ["/entrypoint.sh"]