Blog/Dockerfile

15 lines
416 B
Docker
Raw Normal View History

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
RUN npm install \
&& npm run build
2021-12-23 14:26:58 +01:00
FROM nginx:1.23.3-alpine as prod
2021-12-23 14:26:58 +01:00
LABEL maintainer="marco.blessing@googlemail.com"
2024-03-24 09:19:45 +01:00
#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