Skip to content

Commit fe76c1b

Browse files
authored
Merge pull request #173 from gnosischain/develop
fix: docker build - include postinstall
2 parents b2e69fd + d887015 commit fe76c1b

40 files changed

Lines changed: 9 additions & 30186 deletions

.github/workflows/oicd-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ on:
1515
description: 'subgraph dev tag version for gc subgraph'
1616
required: true
1717
type: string
18-
default: v1.0.1-develop
18+
default: version/latest
1919
dev_subgraph_mainnet:
2020
description: 'subgraph dev tag version for mainnet subgraph'
2121
required: true
2222
type: string
23-
default: v1.0.0-develop
23+
default: version/latest
2424

2525
env:
2626
AWS_REGION: 'eu-central-1'

app/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ yarn-error.log*
3939

4040
#IDE files
4141
/.idea
42+
43+
44+
types/generated/
45+
types/typechain/

app/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ COPY /src ./src
3333
RUN yarn cache clean
3434

3535
RUN yarn install
36+
RUN yarn postinstall
3637

3738
FROM base AS builder
3839
WORKDIR /app
3940
COPY --from=deps /app/node_modules ./node_modules
4041
COPY --from=deps /app/src ./src
42+
COPY --from=deps /app/types ./types
4143
COPY . .
4244

4345
ENV NEXT_TELEMETRY_DISABLED 1

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"start": "next start",
1616
"typechain": "typechain --target=ethers-v5 ./src/abis/**/*.json --out-dir ./types/typechain/",
1717
"subgraph-codegen": "graphql-codegen --config ./subgraph-config.js",
18-
"postinstall-locally": "yarn typechain && yarn subgraph-codegen"
18+
"postinstall": "yarn typechain && yarn subgraph-codegen"
1919
},
2020
"dependencies": {
2121
"@babel/traverse": "^7.23.2",

app/types/generated/subgraph.ts

Lines changed: 0 additions & 1588 deletions
This file was deleted.

0 commit comments

Comments
 (0)