Expo fonts in Docker

I have an expo app that I try to run on a docker container (Don’t ask me why). This is only about running the web version. Locally it works as expected but running it on a docker container, I get some errors like this:
Screenshot 2023-09-12 at 11.27.45
For my custom font as well as for all the expo icons that I use (font awesome, ant design, …).

My Dockerfile looks like this:

FROM node:18.16.1

RUN mkdir /connect-app
WORKDIR /connect-app

COPY . .

RUN yarn

EXPOSE 8081

CMD yarn web

Happy for any suggestion!
Thanks

Right and I load the font with useFonts, like in this example:

I also tried with installing the google font and importing it like this:
import { Inter_400Regular } from "@expo-google-fonts/inter";

Today running the container just works. Must have been the wind…

Sorry to bother! How can I close this?

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.