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
d5ba6cd7
Commit
d5ba6cd7
authored
Sep 29, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nginx-gateway
parent
aabcb4f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
0 deletions
+63
-0
Dockerfile
baseimg/nginx-gateway/Dockerfile
+36
-0
nginx.conf
baseimg/nginx-gateway/nginx.conf
+27
-0
No files found.
baseimg/nginx-gateway/Dockerfile
0 → 100644
View file @
d5ba6cd7
FROM
nginx
MAINTAINER
kalvin "dekun.dai@quantgroup.cn"
# #替换源
WORKDIR
/etc/apt/
RUN
mv
sources.list /tmp
RUN
echo
deb http://mirrors.163.com/debian/ stretch main non-free contrib
>>
sources.list
\
&&
echo
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
>>
sources.list
\
&&
echo
deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
>>
sources.list
\
&&
echo
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
>>
sources.list
\
&&
echo
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
>>
sources.list
\
&&
echo
deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
>>
sources.list
RUN
apt-get update
\
&&
apt-get
install
--assume-yes
--no-install-recommends
\
apt-transport-https
\
iputils-ping
\
build-essential
\
bzip2
\
curl
\
git
\
rlwrap
\
vim
\
&&
curl
-sL
https://deb.nodesource.com/setup_6.x | bash -
\
&&
apt-get
install
--assume-yes
--no-install-recommends
nodejs
\
&&
apt-get clean
EXPOSE
80
EXPOSE
443
VOLUME
/etc/nginx/conf.d/
COPY
./conf.d/ /etc/nginx/conf.d/
COPY
nginx.conf /etc/nginx/nginx.conf
CMD
nginx -g 'daemon off;'
\ No newline at end of file
baseimg/nginx-gateway/nginx.conf
0 → 100644
View file @
d5ba6cd7
user
nginx
;
worker_processes
1
;
error_log
/var/log/nginx/error.log
warn
;
pid
/var/run/nginx.pid
;
events
{
worker_connections
1024
;
}
http
{
include
/etc/nginx/mime.types
;
default_type
application/octet-stream
;
log_format
main
'
$remote_addr
-
$remote_user
[
$time_local
]
"
$request
"
'
'
$status
$body_bytes_sent
"
$http_referer
"
'
'"
$http_user_agent
"
"
$http_x_forwarded_for
"'
;
access_log
/var/log/nginx/access.log
main
;
server_names_hash_bucket_size
64
;
sendfile
on
;
keepalive_timeout
65
;
include
/etc/nginx/conf.d/*.conf
;
}
\ 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