summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2020-10-31 22:01:56 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2020-10-31 23:05:08 +0300
commit731340376f034d6e0c637815747e0cb13f4ce305 (patch)
tree5e1182cf4b2115aeabc62f8ca9f8a09d6afddc89
parentAdd Dockerfile. (diff)
downloadgithunt-731340376f034d6e0c637815747e0cb13f4ce305.tar.gz
Use only static files to host without yarn.
-rw-r--r--Dockerfile2
-rw-r--r--package.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 56bd4a5..168d870 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,4 +3,4 @@ ADD . /src
WORKDIR /src
RUN yarn install
RUN yarn run build-web
-ENTRYPOINT ["yarn", "start"]
+ENTRYPOINT ["cp", "--archive", "--no-target-directory", "--verbose", "build", "/mnt"]
diff --git a/package.json b/package.json
index 6aa4a75..57fbd53 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,7 @@
"scripts": {
"start": "react-scripts start",
"build-chrome": "INLINE_RUNTIME_CHUNK=false react-scripts build",
- "build-web": "cross-env PUBLIC_URL=/githunt react-scripts build",
+ "build-web": "cross-env react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"gh-pages": "NODE_DEBUG=gh-pages gh-pages -d build"