Files
stacks-blockchain-api/Dockerfile
2021-11-15 09:05:10 -06:00

12 lines
330 B
Docker

FROM node:14-alpine
WORKDIR /app
COPY . .
RUN apk add --no-cache --virtual .build-deps alpine-sdk python3 git openjdk8-jre
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"]