diff options
| author | Oleg Pykhalov <go.wigust@gmail.com> | 2020-10-31 22:01:56 +0300 |
|---|---|---|
| committer | Oleg Pykhalov <go.wigust@gmail.com> | 2020-10-31 23:05:08 +0300 |
| commit | 731340376f034d6e0c637815747e0cb13f4ce305 (patch) | |
| tree | 5e1182cf4b2115aeabc62f8ca9f8a09d6afddc89 | |
| parent | Add Dockerfile. (diff) | |
| download | githunt-731340376f034d6e0c637815747e0cb13f4ce305.tar.gz | |
Use only static files to host without yarn.
| -rw-r--r-- | Dockerfile | 2 | ||||
| -rw-r--r-- | package.json | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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" |
