-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.mobile
46 lines (39 loc) · 1.06 KB
/
Dockerfile.mobile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM --platform=linux/amd64 node:19.3.0 AS base
# install required cli tools
RUN npm i -g tsoa
# copy dependency projects
WORKDIR /home/node
COPY src/server ./server
COPY src/core ./core
# copy project resources
WORKDIR /home/node/app
COPY src/mobile/android ./android
COPY src/mobile/ios ./ios
COPY src/mobile/src ./src
COPY src/mobile/.env ./
COPY src/mobile/.eslintignore ./
COPY src/mobile/.eslintrc.js ./
COPY src/mobile/.node-version ./
COPY src/mobile/.ruby-version ./
COPY src/mobile/.watchmanconfig ./
COPY src/mobile/app.json ./
COPY src/mobile/babel.config.json ./
COPY src/mobile/Gemfile ./
COPY src/mobile/index.js ./
COPY src/mobile/metro.config.js ./
COPY src/mobile/package.json ./
COPY src/mobile/react-native.config.js ./
COPY src/mobile/tsconfig.json ./
COPY src/mobile/yarn.lock ./
# generate code
RUN yarn cp:core
RUN yarn tsoa
# run yarn installation
FROM base AS yarn-install
RUN yarn install --non-interactive --immutable
# run pod install
FROM yarn-install AS pod-install
RUN yarn npx pod-install
# launch container
FROM pod-install AS dev
CMD yarn start