mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-01-12 16:53:19 +08:00
12 lines
336 B
Docker
12 lines
336 B
Docker
FROM node:16-alpine
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
RUN apk add --no-cache --virtual .build-deps alpine-sdk python3 git openjdk8-jre cmake
|
|
RUN echo "GIT_TAG=$(git tag --points-at HEAD)" >> .env
|
|
RUN npm config set unsafe-perm true && npm install && npm run build && npm prune --production
|
|
RUN apk del .build-deps
|
|
|
|
CMD ["node", "./lib/index.js"]
|