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>
This commit is contained in:
parent
d356070688
commit
c26b6b83a7
@ -1,4 +1,4 @@
|
|||||||
FROM node:14 as builder
|
FROM node:18-alpine as builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@ -8,6 +8,6 @@ RUN npm i
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run gen:docs
|
RUN npm run gen:docs
|
||||||
|
|
||||||
FROM nginx:latest
|
FROM nginx:stable-alpine3.17
|
||||||
|
|
||||||
COPY --from=builder /app/docs /usr/share/nginx/html
|
COPY --from=builder /app/docs /usr/share/nginx/html
|
Loading…
Reference in New Issue
Block a user