From b279e0aeed85c79d3c7af0f48f533285a126ec81 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 13 Dec 2022 16:57:18 +0100 Subject: [PATCH] build: :rocket: Use Alpine for image Found out that Alpine works after fixing issue in about command --- .vscode/settings.json | 5 ++++- Dockerfile | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 83191f4..e9ea9d9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -33,5 +33,8 @@ "[prisma]": { "editor.defaultFormatter": "Prisma.prisma" }, - "conventionalCommits.scopes": ["git", "github", "prisma"] + "conventionalCommits.scopes": ["git", "github", "prisma"], + "[dockerfile]": { + "editor.defaultFormatter": "foxundermoon.shell-format" + } } diff --git a/Dockerfile b/Dockerfile index caaa66b..487ea90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:19 AS builder +FROM node:19-alpine3.16 AS builder # Create app directory WORKDIR /app @@ -14,7 +14,7 @@ COPY . . RUN npm run build -FROM node:19 +FROM node:19-alpine3.16 COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/package*.json ./