matrix-art

An image gallery for Matrix
git clone git://archive.git.mtrnord.blog/MTRNord/matrix-art.git
Log | Files | Refs | README | LICENSE

commit f998d1c7e71e343cada454c37b18e3c624f4078d
parent 3ccc9b98cc263ba6e7520a9913dd2e5abea9a6cd
Author: MTRNord <mtrnord1@gmail.com>
Date:   Thu, 20 Jan 2022 20:05:32 +0100

Pin the versions of the Docker images

Diffstat:
MDockerfile | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -1,5 +1,5 @@ # Install dependencies only when needed -FROM node:16-alpine AS deps +FROM node@sha256:23990429c0d7826c690acebe5f85d6df4fbf929b9832796cbf897e718e4a7180 AS deps # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. RUN apk add --no-cache libc6-compat WORKDIR /app @@ -7,7 +7,7 @@ COPY package.json package-lock.json ./ RUN npm ci # Rebuild the source code only when needed -FROM node:16-alpine AS builder +FROM node@sha256:23990429c0d7826c690acebe5f85d6df4fbf929b9832796cbf897e718e4a7180 AS builder WORKDIR /app COPY . . COPY --from=deps /app/node_modules ./node_modules @@ -15,7 +15,7 @@ RUN npx browserslist@latest --update-db RUN npm run build && npm install --only=production --ignore-scripts --prefer-offline # Production image, copy all the files and run next -FROM node:16-alpine AS runner +FROM node@sha256:23990429c0d7826c690acebe5f85d6df4fbf929b9832796cbf897e718e4a7180 AS runner WORKDIR /app ENV NODE_ENV production