Commit 217cc161 authored by 张 斌's avatar 张 斌

Merge branch 'master' of gitabc.xyqb.com:dekun.dai/qg-dockerfiles

parents 512451ff fbaa81d9
FROM 192.168.4.36/baseimg/jdk8
MAINTAINER ag "xiaoguang.xu@quantgroup.cn"
#安装必要工具
RUN apt-get install -y bind-tools \
&& apt-get install -y ca-certificates \
&& apt-get install -y openssl \
&& apt-get install -y update-ca-certificates \
# only need ca-certificates & openssl if want to use https_google
#RUN apk --update add bind-tools ca-certificates openssl && update-ca-certificates && rm -rf /var/cache/apk/*
ADD coredns /coredns
EXPOSE 53 53/udp
ENTRYPOINT ["/coredns"]
\ No newline at end of file
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 nginx.conf /etc/nginx/nginx.conf
CMD nginx -g 'daemon off;'
\ No newline at end of file
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment