Blog/Dockerfile
OCram85 ad2d82e5aa pin sevice to ipv4 (#50)
#### 📖 Summary

<!-- Provide a summary of your changes. Describe the why and not how. -->

- workaround for ipv6 issue after updating docker
- disable healtcheck due to timing issues

#### 📑 Test Plan

> 💡 Select your test plan for the code changes.

- [x] CI pipeline
- [ ] Custom test
- [ ] No test plan

##### Details / Justification

<!-- Add your test details or justification for missing tests here. -->

#### 📚 Additional Notes

<!-- A place for additional detail notes. -->

Reviewed-on: #50
2024-03-24 09:24:16 +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