nea
nea
SIASapphire - Imagine a framework
Created by nea on 7/14/2023 in #sapphire-support
Sapphire not initializing correctly inside of Docker
alr
15 replies
SIASapphire - Imagine a framework
Created by nea on 7/14/2023 in #sapphire-support
Sapphire not initializing correctly inside of Docker
as long as it works now ¯\_(ツ)_/¯
15 replies
SIASapphire - Imagine a framework
Created by nea on 7/14/2023 in #sapphire-support
Sapphire not initializing correctly inside of Docker
sometimes, but i also tried with just raw node in different folders
15 replies
SIASapphire - Imagine a framework
Created by nea on 7/14/2023 in #sapphire-support
Sapphire not initializing correctly inside of Docker
yeah, but my "main" in package.json is set correctly and outside of docker I can be in whatever folder I want to run the bot
15 replies
SIASapphire - Imagine a framework
Created by nea on 7/14/2023 in #sapphire-support
Sapphire not initializing correctly inside of Docker
i do not know why this magically works but it does
15 replies
SIASapphire - Imagine a framework
Created by nea on 7/14/2023 in #sapphire-support
Sapphire not initializing correctly inside of Docker
i fixed this by doing
WORKDIR /usr/src/app/services/bot/build

CMD ["node", "index.js"]
WORKDIR /usr/src/app/services/bot/build

CMD ["node", "index.js"]
instead of
CMD ["node", "services/bot/buildindex.js"]
CMD ["node", "services/bot/buildindex.js"]
15 replies
SIASapphire - Imagine a framework
Created by nea on 7/14/2023 in #sapphire-support
Sapphire not initializing correctly inside of Docker
(node_modules are already linked with pnpm inside /common/deploy, that's just how rush works)
15 replies
SIASapphire - Imagine a framework
Created by nea on 7/14/2023 in #sapphire-support
Sapphire not initializing correctly inside of Docker
i looked at examples of sapphire with docker and docker-compose and i don't think im missing anything
15 replies
SIASapphire - Imagine a framework
Created by nea on 7/14/2023 in #sapphire-support
Sapphire not initializing correctly inside of Docker
I'm using my own Dockerfile (and using /common/deploy because rush monorepo)
FROM node:20.4-alpine3.17 AS runner
ENV NODE_ENV production

WORKDIR /usr/src/app

COPY ./common/deploy .
FROM node:20.4-alpine3.17 AS runner
ENV NODE_ENV production

WORKDIR /usr/src/app

COPY ./common/deploy .
15 replies