From ca301c31083c4367a981c811377af4b9d01fe614 Mon Sep 17 00:00:00 2001 From: stwhite Date: Wed, 23 Oct 2024 13:03:34 -0500 Subject: [PATCH] Updated README.md with Docker instrauciotns --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 6def6f0..b10df65 100644 --- a/README.md +++ b/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/ + ``` \ No newline at end of file