switch to docker based runners starting with nostr

This commit is contained in:
Travis Shears 2025-05-22 12:23:39 +02:00
parent 3ffbfd9cd4
commit a1c3231081
8 changed files with 367 additions and 573 deletions

17
Dockerfile Normal file
View file

@ -0,0 +1,17 @@
FROM public.ecr.aws/docker/library/node:22-slim AS appbuild
WORKDIR /app
COPY package.json .yarnrc.yml yarn.lock ./
RUN corepack enable
RUN yarn set version 4.9.1
RUN yarn install
COPY ./src ./src
COPY build.mjs ./
RUN node build.mjs
# Build Stage 2
# This build takes the production build from staging build
#
FROM public.ecr.aws/docker/library/node:22-slim
WORKDIR /app
COPY --from=appbuild /app/dist ./dist
CMD node ./dist/nostr.js