build: 🚀 Use Alpine for image

Found out that Alpine works after fixing issue in about command
This commit is contained in:
Axel Olausson Holtenäs 2022-12-13 16:57:18 +01:00
parent 696f6c746a
commit b279e0aeed
2 changed files with 6 additions and 3 deletions

View file

@ -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"
}
}

View file

@ -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 ./