ready for build
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM harbor.hxjscloud.com/library/python:3-alpine as builder
|
||||
USER root
|
||||
#RUN apk add --no-cache rust cargo python3-dev libffi-dev
|
||||
USER app
|
||||
COPY --chown=app:app . ./webhook/
|
||||
WORKDIR /app/webhook
|
||||
RUN python3 -m venv venv &&\
|
||||
source venv/bin/activate &&\
|
||||
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip && \
|
||||
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt && ls -alh
|
||||
|
||||
FROM harbor.hxjscloud.com/library/python:3-alpine
|
||||
#RUN apk add --no-cache libffi
|
||||
COPY --chown=app:app --from=builder /app/webhook/ ./webhook
|
||||
WORKDIR /app/webhook
|
||||
CMD source /app/webhook/venv/bin/activate &&\
|
||||
MODE=prod waitress-serve --ident="webhook" --connection-limit=500 --call wsgi:run
|
Reference in New Issue
Block a user