Updated README.md with Docker instrauciotns

This commit is contained in:
Steve White 2024-10-23 13:03:34 -05:00
parent 5f3b592724
commit ca301c3108
1 changed files with 18 additions and 0 deletions

View File

@ -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/
```