switch to docker based runners starting with nostr
This commit is contained in:
parent
3ffbfd9cd4
commit
a1c3231081
8 changed files with 367 additions and 573 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue