Website: Click here
Docker Image: Click here
Optional: Docker (v20.10.8 or higher)
git clone https://github.com/ArkTechOrg/arktech-website.git
To set up the project on your local machine, follow these steps:
- Navigate to the project directory in your terminal.
cd arktech-website
- Run the following command to install the required node modules:
npm i
- Once the node modules have been installed, you can start the project in development mode by running:
npm run dev
This will start the development server, and you can view the project by navigating to http://localhost:3000
in your browser.
To build the project for production, run the following command:
npm run build
This will create a dist
folder containing the optimized production-ready files. You can then deploy these files to your server.
- Install the
serve
package globally
npm i -g serve
- Serve the build
serve -s dist
- Make sure your present working directory is the root directory of the project
docker build -t arktech-website:latest .
to build the docker image
Using Docker Run
docker run --rm --name irlamigo-website -p 443:443/tcp -p 80:80/tcp -d arktech-website:latest
to deploy the docker image into a container
Alternate: Using Docker Compose
docker-compose up -d
to deploy the docker image into a container
The website will be available at https://localhost
Optional: Using a custom docker registry
docker run -d -p 5000:5000 --restart=always --name registry registry:2
(Run this command only once)
docker tag arktech-website localhost:5000/arktech-website:latest
docker push localhost:5000/arktech-website:latest
docker run --rm --name arktech-website -p 443:443/tcp -p 80:80/tcp -d localhost:5000/arktech-website:latest
WARNING: Doing so would expose the project to local network. Make sure you're connected to your own secure network to protect from undiscovered security vulnerabilities and to maintain the privacy of this project, or consider using a firewall for safety reasons
docker container stop arktech-website
to stop the docker container
NOTE: If you started the container using Docker Compose, run
docker compose down
instead.
docker image rm arktech-website:latest
to remove the image
docker pull docker.io/arkapravoghosh1/arktech-website:latest
docker run --rm --name arktech-website -p 443:443/tcp -p 80:80/tcp -d arkapravoghosh1/arktech-website:latest
That's it! You should now have the project up and running on your local machine. If you encounter any issues, please refer to the project's documentation.