Switch nodejs to use alpine and update both alpine images. (#26)
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
FROM node:18.5.0 AS base
|
FROM node:18.6-alpine AS base
|
||||||
LABEL version="4.1.0"
|
LABEL version="4.1.0"
|
||||||
LABEL description=""
|
LABEL description=""
|
||||||
|
|
||||||
|
RUN apk --update --no-cache upgrade
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY ["package.json", "./"]
|
COPY ["package.json", "./"]
|
||||||
COPY ["yarn.lock", "./"]
|
COPY ["yarn.lock", "./"]
|
||||||
@@ -12,6 +14,9 @@ COPY ["src/", "./src"]
|
|||||||
RUN npm run Prod
|
RUN npm run Prod
|
||||||
|
|
||||||
FROM nginx:1.23.0-alpine as Web
|
FROM nginx:1.23.0-alpine as Web
|
||||||
|
|
||||||
|
RUN apk --update --no-cache upgrade
|
||||||
|
|
||||||
LABEL maintainer="Phoenix (https://github.com/HotaruBlaze)"
|
LABEL maintainer="Phoenix (https://github.com/HotaruBlaze)"
|
||||||
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY docker/web.conf /etc/nginx/conf.d/web.conf
|
COPY docker/web.conf /etc/nginx/conf.d/web.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user