From 02fefc48afe713a1f03720cdfb22f438f7b97c0e Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sun, 30 Jul 2023 16:12:29 +0200 Subject: Add docker development support --- README.md | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index c61592e..e850d32 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,29 @@ -# Prerequisites : +# Local +## Prerequisites : - Node v12 (or higher): `brew install node` - Yarn: `brew install yarn` -# Installation : +## Installation : - Clone the repo. - Run `yarn install` -# Development : +## Development : - Run `yarn start` -# Build : +## Build : - Run `yarn build` -# Deploy : +## Deploy : - Run `yarn build` - Copy the generated `public` directory to any hosting environment. (`srht.site`) + +# Docker +## Prerequisites: +- Docker: `brew install docker` + +## Build +- Run `docker build . -t website` +- Run `docker run -p 3333:3333 -it website` +or +- Run `docker-compose build` +- Run `docker-compose up` -- cgit v1.2.3