Blog/Dockerfile
OCram85 6571ccc4b8
Some checks failed
ci/woodpecker/push/renovate Pipeline was successful
ci/woodpecker/pr/renovate Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/push/master Pipeline was successful
ci/woodpecker/pr/master Pipeline was successful
ci/woodpecker/push/next Pipeline was successful
ci/woodpecker/pr/next Pipeline failed
ci/woodpecker/pull_request_closed/renovate Pipeline was successful
ci/woodpecker/pull_request_closed/test Pipeline was successful
ci/woodpecker/pull_request_closed/next Pipeline was successful
ci/woodpecker/pull_request_closed/master Pipeline was successful
debug healthcheck
2024-03-24 09:19:45 +01:00

15 lines
416 B
Docker

FROM node:lts-buster-slim as builder
COPY . /src
#RUN ls -la
WORKDIR /src
#RUN ls -a
RUN npm install \
&& npm run build
FROM nginx:1.23.3-alpine as prod
LABEL maintainer="marco.blessing@googlemail.com"
#HEALTHCHECK --interval=15s --timeout=5s \
# CMD wget --no-verbose --tries=1 --spider http://localhost:80/ || exit 1
COPY --from=builder src/public /usr/share/nignx/html/
COPY nginx.conf /etc/nginx/nginx.conf