Skip to content

Commit

Permalink
so bad at docker lol
Browse files Browse the repository at this point in the history
  • Loading branch information
trent-001 committed Feb 26, 2025
1 parent a7235ca commit 7cff080
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ WORKDIR /app
ENV DISCORD_TOKEN=DISCORD_TOKEN
ENV API_SERVER=API_SERVER
ENV POSTGRES_URL=POSTGRES_URL
ENV DISCORD_CLIENT_ID=DISCORD_CLIENT_ID
ENV DISCORD_CLIENT_SECRET=DISCORD_CLIENT_SECRET
ENV SERVER_URL=SERVER_URL


FROM base AS prod-deps
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod
Expand All @@ -21,6 +25,6 @@ FROM base
RUN npm install -g pnpm
COPY --from=prod-deps /app/node_modules /app/node_modules
COPY --from=build /app/build /app/build
COPY --from=build /app/public /app/public
COPY --from=build /app/build/public /app/public

CMD [ "pnpm", "start" ]
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ discord.on(Events.ClientReady, async () => {
});
import "./events/interactionCreate";
import "./server";
import "./public/index.html";
// run every 10 minutes
const TwitchEmbedLoop = async () => {
const servers = await db.query.discordBotTwitch.findMany();
Expand Down

0 comments on commit 7cff080

Please sign in to comment.