Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez committed Feb 20, 2019
1 parent 49adfd0 commit 546b72f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .circleci/config.yml
Expand Up @@ -42,3 +42,29 @@ jobs:
- run:
name: Run Coveralls.io
command: npm run coverage

publishImage:
docker:
- image: mythril/api-k8s-ci:v0.1.3
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
- run:
command: |
IMAGE=mythrilapiplatform/truffle-security
TAG=${CIRCLE_TAG:-$(git describe --tags)}
docker login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
docker build -t ${IMAGE}:${TAG} .
docker push ${IMAGE}:${TAG}
workflows:
version: 2
build-deploy:
jobs:
- build
- publishImage:
requires:
- build
17 changes: 17 additions & 0 deletions Dockerfile
@@ -0,0 +1,17 @@
FROM node:8.15-alpine

RUN mkdir -p /truffle-security

RUN apk --no-cache add git g++ gcc libgcc libstdc++ linux-headers make python

RUN npm i -g truffle --unsafe-perm

COPY . /truffle-security

RUN npm i -g /truffle-security --unsafe-perm

RUN mkdir /app

WORKDIR /app

ENTRYPOINT ["truffle", "run", "verify"]

0 comments on commit 546b72f

Please sign in to comment.