Skip to content

Commit

Permalink
fixed Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
arcticfloyd1984 committed Nov 28, 2024
1 parent 6f65089 commit 9abb3b3
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
FROM node:22-alpine3.19

# Set a default port
ARG PORT=80
ARG PORT=3000
ENV PORT=${PORT}

# Set working directory to the root of the project
WORKDIR /app

# Copy root-level package.json and yarn.lock for dependency resolution
COPY package.json yarn.lock ./
COPY package.json yarn.lock tsconfig.json ./

# Copy the packages folder (containing all 6 packages)
COPY packages ./packages
Expand All @@ -26,5 +26,5 @@ WORKDIR /app/packages/server
# Expose the application port
EXPOSE ${PORT}

# Start the server (assumes the root-level start script handles this)
CMD ["yarn", "start"]
# Start the server
RUN yarn start
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"dependencies": {
"@ponder/utils": "^0.2.2",
"axios": "^1.7.8",
"dd-trace": "^5.24.0",
"dotenv": "^16.4.5",
"express": "^4.21.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/services/src/price-feed/coin-gecko/CoinGecko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { GetPriceParams } from "@rebalancer/types";
import { IPriceFeed } from "../interface";
import { coinGeckoIds } from "./constants";
import { parseUnits } from "viem";
import axios = require("axios");
import axios from "axios";

export class CoinGecko implements IPriceFeed {
private apiKey: string;
Expand Down
19 changes: 19 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,15 @@ avvio@^9.0.0:
"@fastify/error" "^4.0.0"
fastq "^1.17.1"

axios@^1.7.8:
version "1.7.8"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.8.tgz#1997b1496b394c21953e68c14aaa51b7b5de3d6e"
integrity sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==
dependencies:
follow-redirects "^1.15.6"
form-data "^4.0.0"
proxy-from-env "^1.1.0"

babel-jest@^29.7.0:
version "29.7.0"
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-29.7.0.tgz#f4369919225b684c56085998ac63dbd05be020d5"
Expand Down Expand Up @@ -2175,6 +2184,11 @@ flatted@^3.2.9:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a"
integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==

follow-redirects@^1.15.6:
version "1.15.9"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1"
integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==

form-data@^4.0.0:
version "4.0.1"
resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.1.tgz#ba1076daaaa5bfd7e99c1a6cb02aa0a5cff90d48"
Expand Down Expand Up @@ -3639,6 +3653,11 @@ proxy-addr@^2.0.7, proxy-addr@~2.0.7:
forwarded "0.2.0"
ipaddr.js "1.9.1"

proxy-from-env@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2"
integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==

pstree.remy@^1.1.8:
version "1.1.8"
resolved "https://registry.yarnpkg.com/pstree.remy/-/pstree.remy-1.1.8.tgz#c242224f4a67c21f686839bbdb4ac282b8373d3a"
Expand Down

0 comments on commit 9abb3b3

Please sign in to comment.