-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #997 from longguikeji/v2.5-dev
V2.5 dev 准备发版
- Loading branch information
Showing
39 changed files
with
851 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
ARG BASEIMAGE=python:3.8-buster | ||
FROM ${BASEIMAGE} as build_deps | ||
WORKDIR /var/arkid | ||
ARG DEBIAN=http://mirrors.aliyun.com/debian | ||
ARG DEBIANSRT=http://mirrors.aliyun.com/debian-security | ||
ARG PIP="https://mirrors.aliyun.com/pypi/simple/" | ||
#ARG DEBIAN=http://deb.debian.org/debian | ||
#ARG DEBIANSRT=http://security.debian.org/debian-security | ||
#ARG PIP="https://pypi.python.org/simple" | ||
|
||
RUN set -eux; \ | ||
sed -i 's/MinProtocol = TLSv1.2/MinProtocol = TLSv1.0/g' /etc/ssl/openssl.cnf; \ | ||
sed -i "s@http://deb.debian.org/debian@$DEBIAN/@g" /etc/apt/sources.list; \ | ||
sed -i "s@http://security.debian.org/debian-security@$DEBIANSRT@g" /etc/apt/sources.list ; \ | ||
apt-get update; \ | ||
apt-get install -y --no-install-recommends \ | ||
gettext \ | ||
freetds-dev freetds-bin \ | ||
python-dev python-pip \ | ||
python-dev ; \ | ||
# verify that the binary works | ||
rm -rf /var/lib/apt/lists/*; \ | ||
groupadd -r arkid && useradd -r -g arkid arkid; \ | ||
setcap 'cap_net_bind_service=+ep' /usr/local/bin/python3.8 | ||
|
||
ADD . . | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
RUN mkdocs build | ||
|
||
FROM nginx:alpine | ||
ENV TZ Asia/Shanghai | ||
EXPOSE 80 | ||
COPY --from=build_deps /var/arkid/site /usr/share/nginx/html/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.