Skip to content

Commit

Permalink
fix some bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mtianyan committed Jul 17, 2020
1 parent 574c079 commit 502f76a
Show file tree
Hide file tree
Showing 839 changed files with 212,075 additions and 31 deletions.
1 change: 1 addition & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 64 additions & 26 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM centos/python-36-centos7
USER root

RUN yum -y install httpd*

ADD ./requirements.txt /tmp/requirements.txt

RUN pip install -r /tmp/requirements.txt -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com \
&& pip install mod_wsgi -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN mod_wsgi-express install-module

ADD ./conf/django.conf /etc/httpd/conf.d/django.conf

EXPOSE 80

WORKDIR /Mxonline3
14 changes: 14 additions & 0 deletions Dockerfile-uwsgi
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM python:3.7
ENV PYTHONUNBUFFERED 1

MAINTAINER WJ <[email protected]>

ADD ./requirements.txt /tmp/requirements.txt

RUN pip install -r /tmp/requirements.txt -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com \
&& pip install uwsgi -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

EXPOSE 8000

WORKDIR /Mxonline3
Loading

0 comments on commit 502f76a

Please sign in to comment.