diff --git a/Dockerfile b/Dockerfile index 94cf630..3bbc217 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,5 +5,8 @@ WORKDIR /app RUN npm install RUN npm run build -COPY docker/lighttp.conf /app/lighttp.conf -CMD ["lighttpd", "-D", "-f", "/app/lighttp.conf"] +COPY docker/lighttpd.conf /app/lighttpd.conf +RUN mkdir -p /var/www +RUN mv dist/* /var/www +RUN lighttpd -tt -f lighttpd.conf +CMD ["lighttpd", "-D", "-f", "/app/lighttpd.conf"] diff --git a/docker/lighttp.conf b/docker/lighttpd.conf similarity index 69% rename from docker/lighttp.conf rename to docker/lighttpd.conf index 42c26dc..83d697d 100644 --- a/docker/lighttp.conf +++ b/docker/lighttpd.conf @@ -1,8 +1,10 @@ -server.document-root = "/app/dist" +server.document-root = "/var/www" -# to test webhook server.port = 3000 +server.modules = ( "mod_indexfile" ) +index-file.names = ( "index.html" ) + # If running lighttpd earlier than lighttpd 1.4.71, uncomment (remove '#') to add the following: #mimetype.assign = ( # ".html" => "text/html",