This document explains how to build and run the illinihunt application using Docker.
- Docker installed on your system.
- A
.env.localfile in the root of this project with your Supabase credentials. You can create one by copying.env.example.
To build the Docker image, run the following command from the root of this project:
docker build -f docker/Dockerfile -t illinihunt .To run the container locally, use the following command. This will use the .env.local file from your project root.
docker run -d -p 8080:80 --env-file .env.local --name illinihunt-app illinihuntThe application will be available at http://localhost:8080.
To build an image that is compatible with both ARM and AMD/Intel architectures (for example, for deploying to a Kubernetes cluster with a different architecture than your local machine), use the docker buildx command:
docker buildx build --platform linux/amd64,linux/arm64 -f docker/Dockerfile -t <your-registry>/illinihunt . --pushReplace <your-registry> with the path to your Docker registry.