3 Star 10 Fork 6

Gitee 极速下载 / Topaz

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Naresh1318/Topaz
克隆/下载
Dockerfile 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
# build
FROM node:11.12.0-alpine as build-vue
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY ./frontend/package*.json ./
RUN npm install
COPY ./frontend .
RUN npm run build
# production
FROM nginx:stable-alpine as production
WORKDIR /app
RUN apk update && apk add --no-cache python3 && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -r /root/.cache
RUN apk update && apk add gcc python3-dev musl-dev git
COPY --from=build-vue /app/dist /usr/share/nginx/html
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
# Put require here to use cached layers when possible
ADD requirements.txt /tmp/requirements.txt
RUN pip install --trusted-host pypi.python.org -r /tmp/requirements.txt
COPY . /app
EXPOSE 5000
ENV USERNAME "admin"
ENV PASSWORD "test"
ENV PORT 5000
CMD gunicorn -b 0.0.0.0:6000 wsgi:app --daemon && \
sed -i -e 's/$PORT/'"$PORT"'/g' /etc/nginx/conf.d/default.conf && \
nginx -g 'daemon off;'
Python
1
https://gitee.com/mirrors/Topaz.git
git@gitee.com:mirrors/Topaz.git
mirrors
Topaz
Topaz
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891