cleanup caddy files
This commit is contained in:
parent
02a796e966
commit
b67ea08718
18
Caddyfile
18
Caddyfile
@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
debug
|
|
||||||
admin off
|
|
||||||
auto_https off
|
|
||||||
}
|
|
||||||
|
|
||||||
:8080 {
|
|
||||||
root * /usr/share/caddy
|
|
||||||
file_server
|
|
||||||
encode gzip zstd
|
|
||||||
handle_errors {
|
|
||||||
@404 {
|
|
||||||
expression {http.error.status_code} == 404
|
|
||||||
}
|
|
||||||
rewrite @404 /404.html
|
|
||||||
file_server
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
FROM node:lts-buster-slim as builder
|
|
||||||
COPY . /src
|
|
||||||
#RUN ls -la
|
|
||||||
WORKDIR /src
|
|
||||||
#RUN ls -a
|
|
||||||
RUN npm install \
|
|
||||||
&& npm run build
|
|
||||||
|
|
||||||
FROM caddy:2.4.6-alpine
|
|
||||||
LABEL maintainer="marco.blessing@googlemail.com"
|
|
||||||
COPY --from=builder /src/Caddyfile /etc/caddy/Caddyfile
|
|
||||||
COPY --from=builder src/public /usr/share/caddy/
|
|
||||||
HEALTHCHECK --interval=15s --timeout=3s \
|
|
||||||
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1
|
|
||||||
#RUN ls -la /usr/share/caddy/
|
|
Loading…
Reference in New Issue
Block a user