nginx xx

FROM python:3.10.9-alpine3.16

WORKDIR /haitun_cmdb

COPY . /haitun_cmdb

RUN echo “https://mirrors.aliyun.com/alpine/v3.14/main” > /etc/apk/repositories && \

echo “https://mirrors.aliyun.com/alpine/v3.14/community” >> /etc/apk/repositories && \

apk update && apk add build-base dumb-init && \

pip install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple/ && \

pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

ENTRYPOINT [“/usr/bin/dumb-init”, “–”]

CMD [“sh”, “-c”, “celery -A haitun_cmdb worker -l debug & python manage.py runserver 0.0.0.0:8000”]

你可能感兴趣的:(nginx,linux,运维)