Skip to content

Commit

Permalink
fix: update docker file to run app
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jul 4, 2021
1 parent c09c35f commit a98978a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM mhart/alpine-node:12
FROM node:14-alpine

ENV NODE_ENV=production

WORKDIR /usr/src/app

COPY . /usr/src/app/
# RUN yarn install
# RUN yarn add webpack-cli
CMD [ "yarn", "install" ]
RUN yarn install
CMD [ "node", "/usr/src/app/src/index.js" ]
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
},
"homepage": "https://github.com/CoCreate-app/CoCreate-docs#readme",
"dependencies": {
"@cocreate/crud-client": "^1.1.10",
"@cocreate/hosting": "^1.1.3",
"@cocreate/crud-client": "^1.1.12",
"@cocreate/hosting": "^1.1.8",
"extract-comments": "^1.1.0",
"glob": "^7.1.6",
"parse-html-comments": "^1.3.1",
Expand Down
18 changes: 18 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
"@cocreate/docs" "^1.1.14"
"@cocreate/socket-client" "^1.1.5"

"@cocreate/crud-client@^1.1.12":
version "1.1.12"
resolved "https://registry.yarnpkg.com/@cocreate/crud-client/-/crud-client-1.1.12.tgz#c897e897ce5fba4fc8d0bfe32ff0117c13cbbabe"
integrity sha512-QECgF4uBovtaIGb595a4enMP/OAXHJsKaVmqRpkI0bHW7HhoYoqpNfMdjAIrr1eZlDEL+p5Dwl1Kmcsejk/ZOA==
dependencies:
"@cocreate/docs" "^1.1.14"
"@cocreate/socket-client" "^1.1.5"

"@cocreate/docs@^1.1.14":
version "1.1.23"
resolved "https://registry.yarnpkg.com/@cocreate/docs/-/docs-1.1.23.tgz#3545cf36d408d2ee0bbb4d2a8232060efcb83dbd"
Expand All @@ -32,6 +40,16 @@
"@cocreate/socket-client" "^1.1.5"
mime-types "^2.1.30"

"@cocreate/hosting@^1.1.8":
version "1.1.8"
resolved "https://registry.yarnpkg.com/@cocreate/hosting/-/hosting-1.1.8.tgz#3d019c56113516d141902a933df453cae1847e2c"
integrity sha512-is2cM+M6bv5cSGdSTtPpKijFhLDsPBNq49fZwMllVVAUCrLbCFdIPwmBd30swSJu8HX0C1Fp22eKAuO2jaMGZg==
dependencies:
"@cocreate/crud-client" "^1.1.9"
"@cocreate/docs" "^1.1.14"
"@cocreate/socket-client" "^1.1.5"
mime-types "^2.1.30"

"@cocreate/socket-client@^1.1.5":
version "1.1.6"
resolved "https://registry.yarnpkg.com/@cocreate/socket-client/-/socket-client-1.1.6.tgz#85b35ba77fa9465ee5ea8bc113661a33d6886acc"
Expand Down

0 comments on commit a98978a

Please sign in to comment.