瀏覽代碼

update node images (#2736)

This is required to support raw images as Alpine 3.18 included fixes to imagemagick.

Related: #2156

In addtion, the images have stricter tags and are pinned with a digest. The
manifest list digest can be found using:

```sh
❯ docker buildx imagetools inspect node:18.16.0-alpine3.18
```
Thomas 2 年之前
父節點
當前提交
55b6b28afb
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      server/Dockerfile
  2. 1 1
      web/Dockerfile

+ 2 - 2
server/Dockerfile

@@ -1,4 +1,4 @@
-FROM node:18-alpine3.17 as builder
+FROM node:18.16.0-alpine3.18@sha256:f41850f74ff16a33daff988e2ea06ef8f5daeb6fb84913c7df09552a98caba09 as builder
 
 
 WORKDIR /usr/src/app
 WORKDIR /usr/src/app
 
 
@@ -17,7 +17,7 @@ RUN npm run build
 RUN npm prune --omit=dev --omit=optional
 RUN npm prune --omit=dev --omit=optional
 
 
 
 
-FROM node:18-alpine3.17
+FROM node:18.16.0-alpine3.18@sha256:f41850f74ff16a33daff988e2ea06ef8f5daeb6fb84913c7df09552a98caba09
 
 
 ENV NODE_ENV=production
 ENV NODE_ENV=production
 
 

+ 1 - 1
web/Dockerfile

@@ -1,5 +1,5 @@
 # Our Node base image
 # Our Node base image
-FROM node:18-alpine3.17 as base
+FROM node:18.16.0-alpine3.18@sha256:f41850f74ff16a33daff988e2ea06ef8f5daeb6fb84913c7df09552a98caba09 as base
 
 
 WORKDIR /usr/src/app
 WORKDIR /usr/src/app
 EXPOSE 3000
 EXPOSE 3000