diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 04b431e..90e7753 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,6 +33,16 @@ jobs: - name: test run: yarn test + # Test builds + - name: build + run: yarn build + - name: build docker images + run: | + # Build docker image + docker build -f docker/Dockerfile --quiet . + # Build debug docker image + docker build -f docker/Dockerfile.debug --quiet . + # upload coverage - name: Coveralls uses: coverallsapp/github-action@master diff --git a/docker/Dockerfile b/docker/Dockerfile index 1be1200..9bbd819 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,10 +1,10 @@ -FROM node:12.15-alpine +FROM node:lts-alpine # install docker-compose -RUN apk update \ - && apk add --no-cache py-pip python-dev \ - libffi-dev openssl-dev gcc libc-dev make \ - && pip install docker-compose +RUN apk add --no-cache --update python3-dev libffi-dev openssl-dev gcc libc-dev rust cargo make +RUN python3 -m pip install -U pip +RUN pip3 install cryptography==3.1.1 +RUN pip3 install docker-compose # create new workdir WORKDIR /app diff --git a/docker/Dockerfile.debug b/docker/Dockerfile.debug index 03e97b2..92ac0b2 100644 --- a/docker/Dockerfile.debug +++ b/docker/Dockerfile.debug @@ -1,7 +1,10 @@ -FROM node:12 +FROM node:lts-alpine -# install required libs, docker-compose and yarn -RUN apt-get update && apt-get install python-pip -y && pip install docker-compose +# install docker-compose +RUN apk add --no-cache --update python3-dev libffi-dev openssl-dev gcc libc-dev rust cargo make +RUN python3 -m pip install -U pip +RUN pip3 install cryptography==3.1.1 +RUN pip3 install docker-compose # create folder and set it as workdir RUN mkdir -p /usr/src/app