Files
stacks-blockchain-api/Dockerfile
Rafael Cárdenas 352a054b71 feat: move build-publish github actions to docker/build-push-action@v2
* feat: first upgrade attempt

* fix: user and pass

* feat: try hirosystems image

* feat: install cmake, push standalone

* fix: use correct standalone tags

* fix: try re-adding sha and ref tags

* chore: sort dependencies

* chore: version fixes

* fix: only run for master,develop branches
2021-12-06 10:02:24 -06:00

12 lines
336 B
Docker

FROM node:14-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"]