Server/project/Dockerfile.docs
Rev c26b6b83a7 Update Dockerfile.docs (!174)
* Upgrade Node version from 14 to 18 and also add `alpine` as well for smaller image and faster build
* Update Nginx image to use stable version and also `alpine` as well for smaller image and faster build

Co-authored-by: Rev <revaxl09@gmail.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/174
Reviewed-by: chomp <chomp@noreply.dev.sp-tarkov.com>
Co-authored-by: Rev <rev@noreply.dev.sp-tarkov.com>
Co-committed-by: Rev <rev@noreply.dev.sp-tarkov.com>
2023-12-12 09:50:46 +00:00

13 lines
189 B
Docker

FROM node:18-alpine as builder
WORKDIR /app
COPY package.json .
RUN npm i
COPY . .
RUN npm run gen:docs
FROM nginx:stable-alpine3.17
COPY --from=builder /app/docs /usr/share/nginx/html