Skip to content

Commit

Permalink
fix: Docker + security and docker lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Gusakov committed Apr 15, 2022
1 parent f20f880 commit 7698a0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: test
name: Tests and checks
on: pull_request
jobs:
test:
name: App tests
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand All @@ -17,3 +18,9 @@ jobs:
run: yarn lint
- name: Run tests
run: yarn test

security:
uses: lidofinance/linters/.github/workflows/security.yml@master

docker:
uses: lidofinance/linters/.github/workflows/docker.yml@master
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM node:14.18.1-alpine3.13 as building

# needed for git dependencies
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh
apk add --no-cache bash=5.1.16-r0 git=2.30.3-r0 openssh=8.4_p1-r4

RUN mkdir /council

Expand All @@ -18,8 +18,7 @@ RUN yarn install --frozen-lockfile --non-interactive && yarn cache clean
COPY ./tsconfig*.json ./
COPY ./src ./src

RUN yarn typechain
RUN yarn build
RUN yarn typechain && yarn build

FROM node:14.18.1-alpine3.13

Expand Down

0 comments on commit 7698a0c

Please sign in to comment.