1
0
mirror of https://github.com/NicolasConstant/sengi synced 2024-12-23 07:07:19 +01:00

Initial Dockerfile bring up using lighttpd as a static page web server

This commit is contained in:
Mike C 2019-09-24 18:08:27 -04:00
parent 11beefa883
commit d43426641d
3 changed files with 36 additions and 0 deletions

4
.dockerignore Normal file
View File

@ -0,0 +1,4 @@
.git
.gitignore
.travis.yml
.vscode

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM node:10-buster-slim AS build
WORKDIR /build
ADD . /build
RUN apt update && apt install --yes git binutils
RUN npm install
RUN npm run build
FROM alpine:latest
RUN apk add --update --no-cache lighttpd
ADD lighttpd.conf /etc/lighttpd/lighttpd.conf
COPY --from=build /build/dist /app
EXPOSE 80
ENTRYPOINT ["lighttpd", "-D"]
CMD ["-f", "/etc/lighttpd/lighttpd.conf"]

12
lighttpd.conf Normal file
View File

@ -0,0 +1,12 @@
server.port = 80
server.document-root = "/app"
server.errorlog = "/dev/stdout"
accesslog.filename = "/dev/stdout"
dir-listing.activate = "disable"
server.modules = (
"mod_access",
"mod_accesslog",
)
include "mime-types.conf"
server.pid-file = "/run/lighttpd.pid"
index-file.names = ( "index.html", "index.htm" )