Updated README.md with Docker instrauciotns
This commit is contained in:
parent
5f3b592724
commit
ca301c3108
18
README.md
18
README.md
|
@ -27,3 +27,21 @@ This is the frontend application for the Boxes App, built with React. It allows
|
|||
1. **Clone the repository:**
|
||||
```bash
|
||||
git clone git@gitea.r8z.us:stwhite/boxes-fe.git
|
||||
|
||||
2. create the docker builder
|
||||
```bash
|
||||
docker build -f Dockerfile.build -t boxes-fe-builder .
|
||||
```
|
||||
|
||||
3. build the application using the docker builder
|
||||
```bash
|
||||
docker run box-builder:latest
|
||||
docker container create --name tmp-con boxes-fe-builder -- sleep 1200
|
||||
docker cp tmp-con:/app/build ./boxes-fe/build
|
||||
docker rm tmp-con
|
||||
```
|
||||
|
||||
4. copy the appliction to the boxes-api /build directory
|
||||
```bash
|
||||
cp -r ./boxes-fe/build/* ../boxes-api/build/
|
||||
```
|
Loading…
Reference in New Issue