forked from fga-eps-mds/2023-2-GEROcuidado-Front
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f7db7b
commit caacffd
Showing
8 changed files
with
56 additions
and
240 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
npm run start |
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,6 @@ | ||
#!/bin/bash | ||
|
||
echo ".................................." | ||
|
||
echo "Running unit tests" | ||
npm run test |
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,5 @@ | ||
node_modules | ||
.github | ||
.vscode | ||
sonar-project.properties | ||
parser.py |
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 |
---|---|---|
@@ -1,28 +1,20 @@ | ||
FROM node:18.17.0-alpine as BUILD_NODE_MODULES | ||
FROM node:18.17.0-alpine | ||
|
||
RUN apk update && apk add curl bash make && rm -rf /var/cache/apk/* | ||
|
||
WORKDIR /home/node/app | ||
WORKDIR /app | ||
|
||
RUN npm i -g --unsafe-perm --allow-root -g expo-cli@6.3.10 | ||
RUN npm i -g --unsafe-perm --allow-root -g expo-cli@6.3.10 @expo/ngrok@4.1.0 | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm ci --legacy-peer-deps | ||
|
||
COPY . . | ||
|
||
FROM node:18.17.0-alpine | ||
|
||
ENV NODE_ENV=production | ||
|
||
WORKDIR /app | ||
|
||
COPY --chown=node:node ./ /app | ||
COPY --chown=node:node --from=BUILD_NODE_MODULES /home/node/app/node_modules /app/node_modules | ||
RUN chmod +x /app/.docker/entrypoint.sh | ||
|
||
USER node | ||
|
||
EXPOSE 8081 | ||
|
||
ENTRYPOINT ["npm"] | ||
CMD ["start"] | ||
ENTRYPOINT ["/app/.docker/entrypoint.sh"] |
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,13 @@ | ||
version: '3.7' | ||
services: | ||
gerocuidado-front-test: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
container_name: gerocuidado-front-test | ||
ports: | ||
- '8081:8081' | ||
volumes: | ||
- ./:/app | ||
- /app/node_modules | ||
entrypoint: ./.docker/entrypoint.test.sh |
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
version: '3.7' | ||
services: | ||
gerocuidado-usuario-front: | ||
gerocuidado-front: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
container_name: gerocuidado-usuario-front | ||
container_name: gerocuidado-front | ||
ports: | ||
- '8081:8081' | ||
volumes: | ||
- ./:/app | ||
- /app/node_modules | ||
environment: | ||
- EXPO_DEVTOOLS_LISTEN_ADDRESS=0.0.0.0 | ||
- NODE_ENV=${NODE_ENV} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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