2022-01-04 09:27:51 +01:00
|
|
|
FROM node:lts-buster-slim as builder
|
2021-12-23 14:26:58 +01:00
|
|
|
COPY . /src
|
|
|
|
#RUN ls -la
|
|
|
|
WORKDIR /src
|
|
|
|
#RUN ls -a
|
2022-01-04 09:27:51 +01:00
|
|
|
RUN npm install \
|
|
|
|
&& npm run build
|
2021-12-23 14:26:58 +01:00
|
|
|
|
2022-01-04 09:27:51 +01:00
|
|
|
FROM caddy:2.4.6-alpine
|
2021-12-23 14:26:58 +01:00
|
|
|
LABEL maintainer="marco.blessing@googlemail.com"
|
2022-01-04 09:27:51 +01:00
|
|
|
COPY --from=builder /src/Caddyfile /etc/caddy/Caddyfile
|
2021-12-23 14:26:58 +01:00
|
|
|
COPY --from=builder src/public /usr/share/caddy/
|
|
|
|
HEALTHCHECK --interval=15s --timeout=3s \
|
2022-01-04 09:27:51 +01:00
|
|
|
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1
|
2021-12-23 14:26:58 +01:00
|
|
|
#RUN ls -la /usr/share/caddy/
|