From 5830ec7b721cf2f7dcec79c2d284b6e4cd559c75 Mon Sep 17 00:00:00 2001 From: VanshikaSabharwal Date: Mon, 18 Nov 2024 11:12:19 +0530 Subject: [PATCH] updated INSTALLATION.md --- Dockerfile | 2 +- INSTALLATION.md | 24 ++++++++++++++++++++++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6b13a712b7..a045df6f11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.10.0 AS build +FROM node:20.10.0-alpine AS build WORKDIR /usr/src/app diff --git a/INSTALLATION.md b/INSTALLATION.md index b5039fb282..1ed713567e 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -155,12 +155,32 @@ docker build -t talawa-admin . After the build is complete, run the Docker container using this command: +For Linux/MacOS ```bash -docker run -p 4321:4321 talawa-admin +docker run -d \ + --name talawa-admin \ + -p 4321:4321 \ + -v $(pwd)/.env:/app/.env \ + talawa-admin + ```bash +For Windows +docker run -d ` + --name talawa-admin ` + -p 4321:4321 ` + -v ${PWD}\.env:/app/.env ` + talawa-admin + + The application will be accessible at `http://localhost:4321` +4. Managing the container: + +To stop the container: +```bash +docker stop talawa-admin + # Configuration It's important to configure Talawa-Admin. Here's how to do it. @@ -379,4 +399,4 @@ If you don't want this hook to run, you can manually opt out of this using the ` git pull --no-verify
-``` \ No newline at end of file +```