Author SHA1 Message Date
ozzy a397eea1ab Add build script to slim down docker images 2026-08-29 17:45:34 +01:00
ozzy d52d71ef6c Update dockerfile 2024-12-13 20:48:30 +00:00
3 changed files with 15 additions and 1 deletions
Binary file not shown.
+3 -1
View File
@@ -1,9 +1,11 @@
FROM node:18 as build
FROM node:22 as build
WORKDIR /app
COPY package.json package.json
COPY .yarnrc.yml .yarnrc.yml
COPY yarn.lock yarn.lock
COPY tsconfig.json tsconfig.json
RUN corepack enable
RUN yarn install
COPY src ./src
Executable
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
if command -v yarn >/dev/null 2>&1; then
echo "yarn is available"
else
echo "yarn is not installed" >&2
exit 1
fi
yarn install
yarn build