Skip to content

Commit

Permalink
Merge pull request #13 from decentraland/feat/add-jq-aws
Browse files Browse the repository at this point in the history
feat: add aws and jq commands to Dockerfile
  • Loading branch information
juanmahidalgo authored Nov 12, 2024
2 parents 6937958 + 81862bd commit 8af23bd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:16-alpine AS node
FROM node AS node-with-gyp
RUN apk add g++ make python3
RUN apk add --no-cache g++ make python3

FROM node-with-gyp AS builder
WORKDIR /squid
Expand Down Expand Up @@ -40,12 +40,18 @@ ADD indexer.sh /squid/indexer.sh
RUN chmod +x /squid/indexer.sh
RUN echo -e "loglevel=silent\\nupdate-notifier=false" > /squid/.npmrc
RUN npm i -g @subsquid/cli@latest && mv $(which sqd) /usr/local/bin/sqd

# Install jq and AWS CLI
RUN apk update && apk add --no-cache tini postgresql-client curl jq unzip \
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install \
&& rm -rf awscliv2.zip aws

ENV ETH_PROMETHEUS_PORT 3000
ENV POLYGON_PROMETHEUS_PORT 3001
ENV GQL_PORT 5000

RUN apk update && apk add --no-cache tini postgresql-client curl

RUN touch /squid/.env

# Entry point script
Expand Down

0 comments on commit 8af23bd

Please sign in to comment.