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.
10 lines
479 B
10 lines
479 B
FROM registry.cn-shenzhen.aliyuncs.com/starsl/python:3.10-alpine |
|
ADD . /flask |
|
WORKDIR /flask |
|
RUN sed -i 's/dl-cdn.alpinelinux.org/repo.huaweicloud.com/g' /etc/apk/repositories \ |
|
&& apk add --no-cache gcc libc-dev libffi-dev \ |
|
&& rm -rf /var/cache/apk/* \ |
|
&& pip3 install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple --no-cache-dir\ |
|
&& pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple --no-cache-dir |
|
EXPOSE 2026 |
|
CMD ["python3","./manager.py"]
|
|
|