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
82e5037c
Commit
82e5037c
authored
Dec 18, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
openrestry
parent
e45fa177
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
Dockerfile
baseimg/openresty/Dockerfile
+36
-0
No files found.
baseimg/openresty/Dockerfile
0 → 100644
View file @
82e5037c
FROM
centos:7
MAINTAINER
kalvin.dai <dekun.dai@quantgroup.cn>
ENV
LUA_VERSION 5.3.4
RUN
echo
$'[nginx]
\n\
name=nginx repo
\n\
baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/
\n\
gpgcheck=0
\n\
enabled=1
\n\
'
|
tee
/etc/yum.repos.d/nginx.repo
;
\
echo
$'[openresty]
\n\
name=Official OpenResty Repository
\n\
baseurl=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/epel-$releasever-$basearch/
\n\
skip_if_unavailable=True
\n\
gpgcheck=1
\n\
gpgkey=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/pubkey.gpg
\n\
enabled=1
\n\
enabled_metadata=1
\n\
'
|
tee
/etc/yum.repos.d/openresty.repo
;
\
rpm
-Uvh
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
\
# Install OpenResty
&& yum -y update && yum -y install make gcc readline-devel ;\
curl -L http://www.lua.org/ftp/lua-${LUA_VERSION}.tar.gz | tar xzf - && \
cd /lua-${LUA_VERSION} && \
make linux test && \
make install && \
cd .. && rm -rf /lua-${LUA_VERSION} &&\
yum install -y \
nginx luajit luajit-fun inotify-tools openresty \
openresty-{openssl,opm,pcre,resty,zlib,valgrind} \
lua-{fun,json,lpeg,ldap,lunit,md5} source-highlight \
&& yum clean all
EXPOSE
80 443 3000 9001
CMD
["openresty","-g","daemon off;"]
\ 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