Blog/Dockerfile
Marco Blessing 94b2c9c8ed
Add PsTypeName post (#14)
#### 📖 Summary

- extend `.drone.yml`
  - split trivy output and igrnore failure for unfixed CVEs.
  - use build ARGS for base images
- extends dockerfile
  - update nginx 1.21.6
  - implements build args for base image
- use defaults for categories and tags
- restore stack-overflow link
- add PSTypeName post
- update Congo `2.1.0`
2022-03-17 11:43:17 +01:00

19 lines
508 B
Docker

# Build ARGS for base image versions
ARG NODE_BASE=lts-buster-slim
ARG NGINX_BASE=1.21.6-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