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:
parent
11beefa883
commit
d43426641d
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@ -0,0 +1,4 @@
|
||||
.git
|
||||
.gitignore
|
||||
.travis.yml
|
||||
.vscode
|
20
Dockerfile
Normal file
20
Dockerfile
Normal 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
12
lighttpd.conf
Normal 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" )
|
Loading…
Reference in New Issue
Block a user