Commit f671016c by 周立明

构建加速

1 parent 2cf838ae
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
TZ=Asia/Shanghai
WORKDIR /app
RUN sed -i \
-e 's@deb.debian.org@mirrors.aliyun.com@g' \
-e 's@security.debian.org@mirrors.aliyun.com@g' \
/etc/apt/sources.list.d/debian.sources \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
gcc \
g++ \
libffi-dev \
libssl-dev \
tzdata \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& rm -rf /var/lib/apt/lists/*
FROM harbortest.glsx.com.cn/glsx/base_data_process:v1.1.0
#
#ENV PYTHONDONTWRITEBYTECODE=1 \
# PYTHONUNBUFFERED=1 \
# PIP_NO_CACHE_DIR=1 \
# PIP_DISABLE_PIP_VERSION_CHECK=1 \
# TZ=Asia/Shanghai
#
#WORKDIR /app
#
#RUN sed -i \
# -e 's@deb.debian.org@mirrors.aliyun.com@g' \
# -e 's@security.debian.org@mirrors.aliyun.com@g' \
# /etc/apt/sources.list.d/debian.sources \
# && apt-get update \
# && apt-get install -y --no-install-recommends \
# gcc \
# g++ \
# libffi-dev \
# libssl-dev \
# tzdata \
# && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
# && echo "Asia/Shanghai" > /etc/timezone \
# && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ --no-cache-dir --upgrade pip setuptools wheel \
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!