Skip to content

Commit

Permalink
Added dockerfile to the client
Browse files Browse the repository at this point in the history
  • Loading branch information
BE-CH committed Jul 5, 2024
1 parent c1cd0a0 commit efb925d
Show file tree
Hide file tree
Showing 2 changed files with 189 additions and 31 deletions.
20 changes: 20 additions & 0 deletions client/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM node:16-alpine

RUN mkdir -p /usr/src/app
ENV PORT 3000

WORKDIR /usr/src/app

COPY package.json /usr/src/app

# Production use node instead of root
# USER node

RUN yarn install --production

COPY . /usr/src/app

RUN yarn buildClient

EXPOSE 3000
CMD [ "yarn", "startClient" ]
200 changes: 169 additions & 31 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2123,6 +2123,16 @@ __metadata:
languageName: node
linkType: hard

"@types/react-native-vector-icons@npm:^6.4.11":
version: 6.4.18
resolution: "@types/react-native-vector-icons@npm:6.4.18"
dependencies:
"@types/react": "*"
"@types/react-native": ^0.70
checksum: 1ef458cb5e7a37f41eb400e3153940b1b152e4df76a7c06c7a47c712dbfe46e14b9999f04dde1bd074f338f850e161c6c925174ddea33386b74f8112c940065b
languageName: node
linkType: hard

"@types/react-native@npm:^0.69.1":
version: 0.69.3
resolution: "@types/react-native@npm:0.69.3"
Expand All @@ -2132,6 +2142,15 @@ __metadata:
languageName: node
linkType: hard

"@types/react-native@npm:^0.70":
version: 0.70.19
resolution: "@types/react-native@npm:0.70.19"
dependencies:
"@types/react": "*"
checksum: 79b504fa56340631079e7c20ea0d9412ec14147b76d0ce189f4403936f529ef1e6fd031383afab117846c5ae039123bcf3afc948bae4432269c6780282726f71
languageName: node
linkType: hard

"@types/react-test-renderer@npm:^18.0.0":
version: 18.0.0
resolution: "@types/react-test-renderer@npm:18.0.0"
Expand Down Expand Up @@ -2396,6 +2415,40 @@ __metadata:
languageName: node
linkType: hard

"Tilbudstracker@workspace:app":
version: 0.0.0-use.local
resolution: "Tilbudstracker@workspace:app"
dependencies:
"@babel/core": ^7.12.9
"@babel/runtime": ^7.12.5
"@react-native-community/eslint-config": ^2.0.0
"@react-navigation/bottom-tabs": ^6.3.2
"@react-navigation/native": ^6.0.11
"@react-navigation/native-stack": ^6.7.0
"@tsconfig/react-native": ^2.0.0
"@types/jest": ^26.0.23
"@types/react-native": ^0.69.1
"@types/react-native-vector-icons": ^6.4.11
"@types/react-test-renderer": ^18.0.0
"@typescript-eslint/eslint-plugin": ^5.29.0
"@typescript-eslint/parser": ^5.29.0
axios: ^0.27.2
babel-jest: ^26.6.3
eslint: ^7.32.0
jest: ^26.6.3
metro-react-native-babel-preset: ^0.70.3
react: 18.0.0
react-native: 0.69.1
react-native-dropdown-picker: ^5.4.2
react-native-safe-area-context: ^4.3.1
react-native-screens: ^3.15.0
react-native-splash-screen: ^3.3.0
react-native-vector-icons: ^9.2.0
react-test-renderer: 18.0.0
typescript: ^4.4.4
languageName: unknown
linkType: soft

"abab@npm:^2.0.3, abab@npm:^2.0.5":
version: 2.0.6
resolution: "abab@npm:2.0.6"
Expand Down Expand Up @@ -2851,6 +2904,16 @@ __metadata:
languageName: node
linkType: hard

"axios@npm:^0.27.2":
version: 0.27.2
resolution: "axios@npm:0.27.2"
dependencies:
follow-redirects: ^1.14.9
form-data: ^4.0.0
checksum: 38cb7540465fe8c4102850c4368053c21683af85c5fdf0ea619f9628abbcb59415d1e22ebc8a6390d2bbc9b58a9806c874f139767389c862ec9b772235f06854
languageName: node
linkType: hard

"babel-core@npm:^7.0.0-bridge.0":
version: 7.0.0-bridge.0
resolution: "babel-core@npm:7.0.0-bridge.0"
Expand Down Expand Up @@ -3694,6 +3757,17 @@ __metadata:
languageName: node
linkType: hard

"cliui@npm:^7.0.2":
version: 7.0.4
resolution: "cliui@npm:7.0.4"
dependencies:
string-width: ^4.2.0
strip-ansi: ^6.0.0
wrap-ansi: ^7.0.0
checksum: ce2e8f578a4813806788ac399b9e866297740eecd4ad1823c27fd344d78b22c5f8597d548adbcc46f0573e43e21e751f39446c5a5e804a12aace402b7a315d7f
languageName: node
linkType: hard

"clone-deep@npm:^4.0.1":
version: 4.0.1
resolution: "clone-deep@npm:4.0.1"
Expand Down Expand Up @@ -5361,6 +5435,16 @@ __metadata:
languageName: node
linkType: hard

"follow-redirects@npm:^1.14.9":
version: 1.15.6
resolution: "follow-redirects@npm:1.15.6"
peerDependenciesMeta:
debug:
optional: true
checksum: a62c378dfc8c00f60b9c80cab158ba54e99ba0239a5dd7c81245e5a5b39d10f0c35e249c3379eae719ff0285fff88c365dd446fab19dee771f1d76252df1bbf5
languageName: node
linkType: hard

"for-each@npm:^0.3.3":
version: 0.3.3
resolution: "for-each@npm:0.3.3"
Expand Down Expand Up @@ -5388,6 +5472,17 @@ __metadata:
languageName: node
linkType: hard

"form-data@npm:^4.0.0":
version: 4.0.0
resolution: "form-data@npm:4.0.0"
dependencies:
asynckit: ^0.4.0
combined-stream: ^1.0.8
mime-types: ^2.1.12
checksum: 01135bf8675f9d5c61ff18e2e2932f719ca4de964e3be90ef4c36aacfc7b9cb2fceb5eca0b7e0190e3383fe51c5b37f4cb80b62ca06a99aaabfcfd6ac7c9328c
languageName: node
linkType: hard

"forwarded@npm:0.2.0":
version: 0.2.0
resolution: "forwarded@npm:0.2.0"
Expand Down Expand Up @@ -5531,7 +5626,7 @@ __metadata:
languageName: node
linkType: hard

"get-caller-file@npm:^2.0.1":
"get-caller-file@npm:^2.0.1, get-caller-file@npm:^2.0.5":
version: 2.0.5
resolution: "get-caller-file@npm:2.0.5"
checksum: b9769a836d2a98c3ee734a88ba712e62703f1df31b94b784762c433c27a386dd6029ff55c2a920c392e33657d80191edbf18c61487e198844844516f843496b9
Expand Down Expand Up @@ -9461,7 +9556,7 @@ __metadata:
languageName: node
linkType: hard

"prop-types@npm:^15.8.1":
"prop-types@npm:^15.7.2, prop-types@npm:^15.8.1":
version: 15.8.1
resolution: "prop-types@npm:15.8.1"
dependencies:
Expand Down Expand Up @@ -9696,6 +9791,16 @@ __metadata:
languageName: node
linkType: hard

"react-native-dropdown-picker@npm:^5.4.2":
version: 5.4.6
resolution: "react-native-dropdown-picker@npm:5.4.6"
peerDependencies:
react: "*"
react-native: "*"
checksum: d81ee3d68c17107a4d21dbdf9c2fe2ffe4bf4398973d10113139aadc0674221ce5038b945299fba2abc796930ec5e6d5f84291945bf903344493a15b8e2fca43
languageName: node
linkType: hard

"react-native-gradle-plugin@npm:^0.0.7":
version: 0.0.7
resolution: "react-native-gradle-plugin@npm:0.0.7"
Expand Down Expand Up @@ -9726,6 +9831,28 @@ __metadata:
languageName: node
linkType: hard

"react-native-splash-screen@npm:^3.3.0":
version: 3.3.0
resolution: "react-native-splash-screen@npm:3.3.0"
peerDependencies:
react-native: ">=0.57.0"
checksum: 14c565d5d4214f55586dcf6f7abd12d99d3e0667f67de3bda7aa24988971567b283a4187fbc0c6269c83b3c21d59d1950335c61bb0780ec2d065e20b3b9199d0
languageName: node
linkType: hard

"react-native-vector-icons@npm:^9.2.0":
version: 9.2.0
resolution: "react-native-vector-icons@npm:9.2.0"
dependencies:
prop-types: ^15.7.2
yargs: ^16.1.1
bin:
fa5-upgrade: bin/fa5-upgrade.sh
generate-icon: bin/generate-icon.js
checksum: 222baf88c3f269234c08a41680e6400a4bf1f4c170f7c2ffac34b2c1c089cdb1084223db2a7d9cc54ee212eec20ff1478f3f482df19062e3057c328642da0be2
languageName: node
linkType: hard

"react-native@npm:0.69.1":
version: 0.69.1
resolution: "react-native@npm:0.69.1"
Expand Down Expand Up @@ -11362,35 +11489,6 @@ __metadata:
languageName: unknown
linkType: soft

"tilbudstracker_app@workspace:app":
version: 0.0.0-use.local
resolution: "tilbudstracker_app@workspace:app"
dependencies:
"@babel/core": ^7.12.9
"@babel/runtime": ^7.12.5
"@react-native-community/eslint-config": ^2.0.0
"@react-navigation/bottom-tabs": ^6.3.2
"@react-navigation/native": ^6.0.11
"@react-navigation/native-stack": ^6.7.0
"@tsconfig/react-native": ^2.0.0
"@types/jest": ^26.0.23
"@types/react-native": ^0.69.1
"@types/react-test-renderer": ^18.0.0
"@typescript-eslint/eslint-plugin": ^5.29.0
"@typescript-eslint/parser": ^5.29.0
babel-jest: ^26.6.3
eslint: ^7.32.0
jest: ^26.6.3
metro-react-native-babel-preset: ^0.70.3
react: 18.0.0
react-native: 0.69.1
react-native-safe-area-context: ^4.3.1
react-native-screens: ^3.15.0
react-test-renderer: 18.0.0
typescript: ^4.4.4
languageName: unknown
linkType: soft

"timers-browserify@npm:2.0.12, timers-browserify@npm:^2.0.4":
version: 2.0.12
resolution: "timers-browserify@npm:2.0.12"
Expand Down Expand Up @@ -12172,6 +12270,17 @@ __metadata:
languageName: node
linkType: hard

"wrap-ansi@npm:^7.0.0":
version: 7.0.0
resolution: "wrap-ansi@npm:7.0.0"
dependencies:
ansi-styles: ^4.0.0
string-width: ^4.1.0
strip-ansi: ^6.0.0
checksum: a790b846fd4505de962ba728a21aaeda189b8ee1c7568ca5e817d85930e06ef8d1689d49dbf0e881e8ef84436af3a88bc49115c2e2788d841ff1b8b5b51a608b
languageName: node
linkType: hard

"wrappy@npm:1":
version: 1.0.2
resolution: "wrappy@npm:1.0.2"
Expand Down Expand Up @@ -12261,6 +12370,13 @@ __metadata:
languageName: node
linkType: hard

"y18n@npm:^5.0.5":
version: 5.0.8
resolution: "y18n@npm:5.0.8"
checksum: 54f0fb95621ee60898a38c572c515659e51cc9d9f787fb109cef6fde4befbe1c4602dc999d30110feee37456ad0f1660fa2edcfde6a9a740f86a290999550d30
languageName: node
linkType: hard

"yallist@npm:^4.0.0":
version: 4.0.0
resolution: "yallist@npm:4.0.0"
Expand All @@ -12278,6 +12394,13 @@ __metadata:
languageName: node
linkType: hard

"yargs-parser@npm:^20.2.2":
version: 20.2.9
resolution: "yargs-parser@npm:20.2.9"
checksum: 8bb69015f2b0ff9e17b2c8e6bfe224ab463dd00ca211eece72a4cd8a906224d2703fb8a326d36fdd0e68701e201b2a60ed7cf81ce0fd9b3799f9fe7745977ae3
languageName: node
linkType: hard

"yargs@npm:^15.1.0, yargs@npm:^15.3.1, yargs@npm:^15.4.1":
version: 15.4.1
resolution: "yargs@npm:15.4.1"
Expand All @@ -12297,6 +12420,21 @@ __metadata:
languageName: node
linkType: hard

"yargs@npm:^16.1.1":
version: 16.2.0
resolution: "yargs@npm:16.2.0"
dependencies:
cliui: ^7.0.2
escalade: ^3.1.1
get-caller-file: ^2.0.5
require-directory: ^2.1.1
string-width: ^4.2.0
y18n: ^5.0.5
yargs-parser: ^20.2.2
checksum: b14afbb51e3251a204d81937c86a7e9d4bdbf9a2bcee38226c900d00f522969ab675703bee2a6f99f8e20103f608382936034e64d921b74df82b63c07c5e8f59
languageName: node
linkType: hard

"yocto-queue@npm:^0.1.0":
version: 0.1.0
resolution: "yocto-queue@npm:0.1.0"
Expand Down

0 comments on commit efb925d

Please sign in to comment.