matrix-art

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

commit 815a9751ffe91d97a117f69500c3e260467e9b12
parent 28f66d63b3ae1ca60efe84b88c5c34eb6ea3cbf3
Author: MTRNord <mtrnord1@gmail.com>
Date:   Thu, 30 Dec 2021 21:19:43 +0100

Fix dockerfile

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

diff --git a/Dockerfile b/Dockerfile @@ -3,15 +3,15 @@ FROM node:16-alpine 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 -COPY package.json yarn.lock ./ -RUN yarn install --frozen-lockfile +COPY package.json package-lock.json ./ +RUN npm ci # Rebuild the source code only when needed FROM node:16-alpine AS builder WORKDIR /app COPY . . COPY --from=deps /app/node_modules ./node_modules -RUN yarn build && yarn install --production --ignore-scripts --prefer-offline +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