-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from ponder-surveys/feature/pon-816-move-farca…
…ster-survey-bot-to-railway removed yarn, added dockerfile for railway
- Loading branch information
Showing
9 changed files
with
71 additions
and
11,691 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules | ||
dist | ||
.env | ||
.git | ||
.gitignore | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,5 @@ yarn-error.log* | |
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
|
||
bun.lockb |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Use the official Bun image | ||
FROM oven/bun:1 as base | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Copy package.json and bun.lockb (if exists) | ||
COPY package.json bun.lockb* ./ | ||
|
||
# Install dependencies | ||
RUN bun install --frozen-lockfile | ||
|
||
# Copy the rest of the application code | ||
COPY . . | ||
|
||
# Build the application | ||
RUN bun run build | ||
|
||
# Define environment variables | ||
ARG NEYNAR_API_KEY | ||
ARG NEYNAR_SIGNER_UUID | ||
ARG NEYNAR_POLL_SIGNER_UUID | ||
ARG SUPABASE_URL | ||
ARG SUPABASE_KEY | ||
ARG SENTRY_DSN | ||
ARG SENTRY_ENVIRONMENT | ||
ARG WEB3_ENGINE_URL | ||
ARG WEB3_ACCESS_TOKEN | ||
ARG TRANSACTION_ADDRESS | ||
ARG ALCHEMY_API_KEY | ||
ARG EDGE_FUNCTIONS_SERVER_URL | ||
ARG EDGE_FUNCTIONS_SECRET_TOKEN | ||
ARG FRAME_API_URL | ||
ARG APP_URL | ||
ARG WARPCAST_API_KEY | ||
ARG NEXT_GENERAL_QUESTION_CRON | ||
ARG NEXT_COMMUNITY_QUESTION_CRON | ||
ARG NEXT_EXPEDITED_QUESTION_CRON | ||
ARG NEXT_QUESTION_REPLY | ||
ARG NEXT_QUESTION_INFO | ||
ARG NEXT_POLL_RESULTS_CRON | ||
ARG NEXT_POLL_RESULTS_INTERVAL_HOURS | ||
ARG NEXT_PREDICTIVE_POLL_RESULTS_CRON | ||
ARG NEXT_QUESTION_QUAL_UPDATE_CRON | ||
ARG NEXT_QUESTION_QUAL_UPDATE_INTERVAL_HOURS | ||
ARG CALL_TO_ACTION | ||
ARG RESULTS_CALL_TO_ACTION | ||
ARG LOG_LEVEL | ||
|
||
# Start the application | ||
CMD ["bun", "run", "./dist/app.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.