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 WORKDIR /app
COPY package.json package.json COPY package.json package.json
COPY .yarnrc.yml .yarnrc.yml
COPY yarn.lock yarn.lock COPY yarn.lock yarn.lock
COPY tsconfig.json tsconfig.json COPY tsconfig.json tsconfig.json
RUN corepack enable
RUN yarn install RUN yarn install
COPY src ./src 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