Blog/Dockerfile
Drone-Bot 5552dda0df
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
Update nginx Docker tag to v1.23.2
2022-11-28 19:35:52 +00:00

19 lines
508 B
Docker

# Build ARGS for base image versions
ARG NODE_BASE=lts-buster-slim
ARG NGINX_BASE=1.23.2-alpine
FROM node:${NODE_BASE} as builder
COPY . /src
#RUN ls -la
WORKDIR /src
#RUN ls -a
RUN npm install \
&& npm run build
FROM nginx:${NGINX_BASE} 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