Apostolos Fanakis
5 years ago
6 changed files with 53 additions and 10 deletions
@ -0,0 +1,15 @@ |
|||||
|
FROM alpine:3.10 as base |
||||
|
LABEL maintainer="Fanakis Apostolos <apotwohd@gmail.com>" |
||||
|
|
||||
|
RUN apk add --update --no-cache openrc lighttpd \ |
||||
|
&& rm -rf /var/cache/apk/* |
||||
|
RUN rc-update add lighttpd default |
||||
|
|
||||
|
FROM base as final |
||||
|
|
||||
|
COPY lighttpd.conf /etc/lighttpd/lighttpd.conf |
||||
|
EXPOSE 8000 |
||||
|
|
||||
|
STOPSIGNAL SIGTERM |
||||
|
|
||||
|
CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"] |
@ -0,0 +1,4 @@ |
|||||
|
VIRTUAL_HOST=guide.apella.tk |
||||
|
VIRTUAL_PORT=8000 |
||||
|
LETSENCRYPT_HOST=guide.apella.tk |
||||
|
LETSENCRYPT_EMAIL=apotwohd@gmail.com |
@ -0,0 +1,12 @@ |
|||||
|
server.document-root = "/var/www/servers/apella-guide/" |
||||
|
|
||||
|
server.port = 8000 |
||||
|
|
||||
|
mimetype.assign = ( |
||||
|
".html" => "text/html", |
||||
|
".js" => "application/javascript", |
||||
|
".css" => "text/css", |
||||
|
".png" => "image/png" |
||||
|
) |
||||
|
|
||||
|
index-file.names = ( "index.html" ) |
@ -0,0 +1,10 @@ |
|||||
|
build: |
||||
|
@docker-compose -p apella-guide build; |
||||
|
run: |
||||
|
@docker-compose -p apella-guide up -d |
||||
|
stop: |
||||
|
@docker-compose -p apella-guide down |
||||
|
clean-data: |
||||
|
@docker-compose -p apella-guide down -v |
||||
|
clean-images: |
||||
|
@docker rmi `docker images -q -f "dangling=true"` |
Loading…
Reference in new issue