Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-dockerfiles
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-dockerfiles
Commits
fba3f7ac
Commit
fba3f7ac
authored
Nov 11, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbugs
parent
a863fa7c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
Dockerfile
templates/python/Dockerfile
+9
-8
No files found.
templates/python/Dockerfile
View file @
fba3f7ac
FROM
192.168.4.36/baseimg/
python
FROM
192.168.4.36/baseimg/
ubuntu
MAINTAINER
kalvin "dekun.dai@quantgroup.cn"
MAINTAINER
kalvin "dekun.dai@quantgroup.cn"
ARG
SYSTEM_NAME
USER
root
USER
root
WORKDIR
/home/quant_group
WORKDIR
/home/quant_group
RUN
mkdir
${
SYSTEM_NAME
}
RUN
mkdir
${
SYSTEM_NAME
}
...
@@ -10,14 +8,17 @@ RUN mkdir ${SYSTEM_NAME}
...
@@ -10,14 +8,17 @@ RUN mkdir ${SYSTEM_NAME}
ARG
BUILD_NUMBER
ARG
BUILD_NUMBER
RUN
echo
"
${
BUILD_NUMBER
}
"
>>
./version.txt
RUN
echo
"
${
BUILD_NUMBER
}
"
>>
./version.txt
ADD
sources.list /etc/apt/sources.list
RUN
apt-get update
&&
apt-get
install
python-pip
\
python-mysqldb
\
mysql-libs
\
mysql-devel
\
python-dev
-y
RUN
pip
install
--default-timeout
6000 tornado MySQL-python DBUtils synthesis executor futures
#RUN apt-get remove python-pip -y && apt-get autoremove -y
EXPOSE
80
EXPOSE
80
#RUN apt-get install mysql-libs mysql-devel -y
RUN
pip
install
tornado MySQL-python DBUtils synthesis executor futures
COPY
docker-entrypoint.sh .
COPY
docker-entrypoint.sh .
COPY
dist.tgz ./${SYSTEM_NAME}/dist.tgz
COPY
dist.tgz ./${SYSTEM_NAME}/dist.tgz
RUN
chmod
+x ./docker-entrypoint.sh
RUN
chmod
+x ./docker-entrypoint.sh
CMD
["./docker-entrypoint.sh"]
CMD
["./docker-entrypoint.sh"]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment