forked from mtianyan/OnlineMooc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
839 changed files
with
212,075 additions
and
31 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,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 |
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,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 |
Oops, something went wrong.