fix
This commit is contained in:
@@ -14,7 +14,6 @@ RUN --mount=type=cache,target=/var/cache/apk,id=apk-cache-$TARGETARCH$TARGETVARI
|
|||||||
<<EOS
|
<<EOS
|
||||||
set -ex
|
set -ex
|
||||||
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
||||||
apk update
|
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
gcc libc-dev python3-dev \
|
gcc libc-dev python3-dev \
|
||||||
libpq libpq-dev \
|
libpq libpq-dev \
|
||||||
@@ -22,7 +21,7 @@ apk add --no-cache \
|
|||||||
zlib zlib-dev \
|
zlib zlib-dev \
|
||||||
freetype freetype-dev \
|
freetype freetype-dev \
|
||||||
supervisor openssl nginx curl unzip
|
supervisor openssl nginx curl unzip
|
||||||
pip install -r /app/deploy/requirements.txt
|
pip install --no-cache-dir -r /app/deploy/requirements.txt
|
||||||
apk del gcc libc-dev python3-dev libpq-dev libjpeg-turbo-dev zlib-dev freetype-dev
|
apk del gcc libc-dev python3-dev libpq-dev libjpeg-turbo-dev zlib-dev freetype-dev
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
@@ -30,6 +29,7 @@ COPY ./ /app/
|
|||||||
RUN mkdir -p /app/dist/
|
RUN mkdir -p /app/dist/
|
||||||
RUN chmod -R u=rwX,go=rX ./ && chmod +x ./deploy/entrypoint.sh
|
RUN chmod -R u=rwX,go=rX ./ && chmod +x ./deploy/entrypoint.sh
|
||||||
|
|
||||||
HEALTHCHECK --interval=5s CMD [ "/usr/local/bin/python3", "/app/deploy/health_check.py" ]
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||||
|
CMD python3 /app/deploy/health_check.py
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
ENTRYPOINT [ "/app/deploy/entrypoint.sh" ]
|
ENTRYPOINT [ "/app/deploy/entrypoint.sh" ]
|
||||||
Reference in New Issue
Block a user