-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mobile contenerization requires to specify your computer IP address to make it possible to use expo go.
- Loading branch information
Showing
6 changed files
with
146 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Include any files or directories that you don't want to be copied to your | ||
# container here (e.g., local build artifacts, temporary files, etc.). | ||
# | ||
# For more help, visit the .dockerignore file reference guide at | ||
# https://docs.docker.com/go/build-context-dockerignore/ | ||
|
||
**/.classpath | ||
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.gitignore | ||
**/.project | ||
**/.settings | ||
**/.toolstarget | ||
**/.vs | ||
**/.vscode | ||
**/.next | ||
**/.cache | ||
**/*.*proj.user | ||
**/*.dbmdl | ||
**/*.jfm | ||
**/charts | ||
**/docker-compose* | ||
**/compose* | ||
**/Dockerfile* | ||
**/node_modules | ||
**/npm-debug.log | ||
**/obj | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
**/build | ||
**/dist | ||
LICENSE | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM node:21.7.1-alpine as base | ||
|
||
FROM base as prunner | ||
RUN apk add --no-cache libc6-compat | ||
copy reasn-client /source | ||
WORKDIR /source | ||
RUN yarn set version 4.1.0 \ | ||
&& yarn dlx turbo prune native --docker | ||
|
||
FROM base AS installer | ||
RUN apk add --no-cache libc6-compat | ||
WORKDIR /source | ||
COPY --from=prunner /source/out/json/ . | ||
COPY --from=prunner /source/out/yarn.lock ./yarn.lock | ||
RUN --mount=type=cache,target=.yarn/cache \ | ||
yarn install --immutable | ||
COPY --from=prunner /source/out/full . | ||
|
||
FROM installer AS development | ||
ARG NODE_ENV=development | ||
ENV NODE_ENV=${NODE_ENV} | ||
CMD ["yarn", "run", "dev:mobile"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM node:21.7.1-alpine as base | ||
|
||
FROM base as prunner | ||
RUN apk add --no-cache libc6-compat | ||
copy reasn-client /source | ||
WORKDIR /source | ||
RUN yarn set version 4.1.0 \ | ||
&& yarn dlx turbo prune web --docker | ||
|
||
FROM base AS installer | ||
RUN apk add --no-cache libc6-compat | ||
WORKDIR /source | ||
COPY --from=prunner /source/out/json/ . | ||
COPY --from=prunner /source/out/yarn.lock ./yarn.lock | ||
RUN --mount=type=cache,target=.yarn/cache \ | ||
yarn install --immutable | ||
COPY --from=prunner /source/out/full . | ||
|
||
FROM installer AS development | ||
ARG NODE_ENV=development | ||
ENV NODE_ENV=${NODE_ENV} | ||
CMD ["yarn", "run", "dev:web"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters