Skip to content
Snippets Groups Projects
Commit 94c31c44 authored by Yifan Gao's avatar Yifan Gao
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
FROM smartentry/alpine:3.4-0.3.2
MAINTAINER Yifan Gao <docker@yfgao.com>
ADD docker $ASSETS_DIR
RUN smartentry.sh build
CMD ["nginx"]
ADD src /var/www
#!/usr/bin/env bash
apk add --no-cache nginx
daemon off;
master_process on;
user nobody;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
include 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;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name _;
charset utf-8;
root /var/www;
location / {
index index.html index.htm;
}
error_page 404 /404.html;
}
}
<p> 404 not found </p>
<p>Hello World!</p>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment