Skip to content

Commit

Permalink
fix: use custom image
Browse files Browse the repository at this point in the history
  • Loading branch information
raghav-rama committed Nov 28, 2024
1 parent de8442d commit 749cc0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
FROM node:20-alpine
FROM 333356345985.dkr.ecr.ap-south-1.amazonaws.com/leveragefunbot:latest

WORKDIR /app

# RUN sh -c "$(curl -sSfL https://release.anza.xyz/edge/install)"
# ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"

RUN mkdir -p /root/.config/solana

ARG ADMIN_KEYPAIR
RUN echo "${ADMIN_KEYPAIR}" > /root/.config/solana/5kRot8UnMEqoDkAc72e7pqaEaF5hxGmbDNowMmPiCDmb.json && \
chmod 600 /root/.config/solana/5kRot8UnMEqoDkAc72e7pqaEaF5hxGmbDNowMmPiCDmb.json

RUN npm install -g pnpm

COPY package.json pnpm-lock.yaml ./
Expand Down
4 changes: 4 additions & 0 deletions Dockerrun.aws.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"AWSEBDockerrunVersion": "1",
"Image": {
"Name": "333356345985.dkr.ecr.ap-south-1.amazonaws.com/leveragefunbot:latest",
"Update": "true"
},
"Ports": [
{
"ContainerPort": 8080,
Expand Down
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: npm install && npm run build && npm run start
web: npm install && npm run build && npm run start

0 comments on commit 749cc0e

Please sign in to comment.