Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 549 Bytes

expo_compose.md

File metadata and controls

41 lines (30 loc) · 549 Bytes

Dockerized environment for an expo project

Dockerfile:

FROM node:16.20-alpine

EXPOSE 19000
EXPOSE 19001
EXPOSE 19002

WORKDIR /app
COPY ./ /app

RUN apk add git

RUN yarn
RUN yarn global add eas-cli@^4.0.0

RUN git config --global --add safe.directory /app

CMD [ "yarn", "start" ]

compose.yml:

services:
   app:
      build: .
      ports:
         - 19000:19000
         - 19001:19001
         - 19002:19002
      volumes:
         - ./:/app
         - nodemodules:/app/node_modules

volumes:
  nodemodules: