chore: fix container build and minimize container size (#380)

This commit is contained in:
ハン / Han authored and GitHub committed 2022-07-01 00:09:36 +08:00
1 parent 4d6d9b9d2f
commit 0c36f39514
3 files changed
+25 -8

No files matched your search

+8 -4
View File
@@ -191,14 +191,18 @@ And you will see the generated file in `dist` that ready to be served.
Go to [Netlify](https://app.netlify.com/start) and select your clone, `OK` along the way, and your App will be live in a minute.
### Docker
First, build the vitesse image by opening the terminal in the project's root directory.
### Docker Production Build
First, build the vitesse image by opening the terminal in the project's root directory.
```bash
docker build . -t vitesse
docker build . -t vitesse:latest
```
Run the image and specify port mapping with the `-p` flag.
```bash
docker run -p 4173:4173 vitesse
docker run --rm -it -p 8080:80 vitesse:latest
```
## Why