Blog/Dockerfile
Marco Blessing 02a796e966
Switch to nginx server (#8)
* test nginx image

* web optimize jpg

* update Readme

* adds docker swarm stack file [CI SKIP]
2022-01-13 09:35:23 +01:00

15 lines
406 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.21.5-alpine
LABEL maintainer="marco.blessing@googlemail.com"
HEALTHCHECK --interval=15s --timeout=3s \
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