Commit aa8bed36 authored by daidekun's avatar daidekun

openrestry

parent febfeb07
......@@ -16,9 +16,7 @@ EXPOSE 80
COPY docker-entrypoint.sh .
COPY dist.tgz ./${SYSTEM_NAME}/dist.tgz
COPY default.conf /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/nginx.conf
RUN chmod +x ./docker-entrypoint.sh
CMD ./docker-entrypoint.sh ${SYSTEM_NAME}
VOLUME /home/quant_group/logs/
CMD ./docker-entrypoint.sh ${SYSTEM_NAME}
\ No newline at end of file
......@@ -21,5 +21,5 @@ mv ${package_path}/public/dist/* public
echo "rm dist.tgz public/dist -rf"
rm ${package_path}/dist.tgz ${package_path}/public/dist -rf
echo "nginx -g 'daemon off;'"
nginx -g 'daemon off;'
echo "/usr/bin/openresty -g 'daemon off;'"
/usr/bin/openresty -g 'daemon off;'
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;
}
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