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

caddy instead of nginx

parent 1003d4fe
No related branches found
No related tags found
No related merge requests found
0.0.0.0:80
root /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;
}
}
#!/bin/sh
nginx
FROM smartentry/alpine:3.4-0.3.8
FROM alpine:3.5
MAINTAINER Yifan Gao <docker@yfgao.com>
ADD .docker $ASSETS_DIR
RUN apk add --no-cache caddy
RUN smartentry.sh build
ADD .docker/Caddyfile /
ADD . /var/www
CMD ["caddy"]
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