mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-01-12 08:34:17 +08:00
* ci: fix api docker builds, upgrade to node 20 * try again, ignore ord * fix dockerignore * restore ci order
15 lines
298 B
Docker
15 lines
298 B
Docker
FROM node:20-alpine
|
|
|
|
WORKDIR /app
|
|
COPY ./api/ordinals /app
|
|
COPY .git /.git
|
|
|
|
RUN apk add --no-cache --virtual .build-deps git
|
|
RUN npm ci --no-audit && \
|
|
npm run build && \
|
|
npm run generate:git-info && \
|
|
npm prune --production
|
|
RUN apk del .build-deps
|
|
|
|
CMD ["node", "./dist/src/index.js"]
|