17 lines
437 B
Docker
17 lines
437 B
Docker
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
|