Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
shafu0x committed Dec 16, 2022
1 parent f9a7225 commit ffe9779
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:16.18.1
ENV NODE_ENV=production

WORKDIR /

COPY ["package.json", "package-lock.json*", "./"]

RUN npm install --production

COPY . .

ENV GOERLI_INFURA_PROJECT_ID=786a7764b8234b06b4cd6764a1646a17
ENV SUPABASE_URL=https://zdsoetzzluqvefxlchjm.supabase.co
ENV SUPABASE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inpkc29ldHp6bHVxdmVmeGxjaGptIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTY2NTg1NTAwOCwiZXhwIjoxOTgxNDMxMDA4fQ.Il9RazCs7U_SP1BmHQlXYL8zcymI5dQN6YCBRSHzkFQ

CMD [ "node", "app.js" ]
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ async function refresh() {
return 0;
}

async function subscribeToSync() {
await refresh();
function subscribeToSync() {
refresh();
console.log("subscribing to sync");
var subscription = web3.eth
web3.eth
.subscribe(
"logs",
{
Expand Down

0 comments on commit ffe9779

Please sign in to comment.