Skip to content

Developing with Docker

John Bradley edited this page Nov 2, 2023 · 2 revisions

To build a Docker image from the source code:

  1. Clone this repository and navigate into it.

  2. Build the Docker image.

docker image build -t andromeda .
  1. Optionally, set your environment variables in .env. See the section below for more information.
cp example.env .env # uses the provided example environment variables
  1. Run the Docker container.
docker container run --env-file .env -p 7860:7860 andromeda
  1. Prepare a simple Dockerfile in a Hugging Face Space. For example:
FROM ghcr.io/imageomics/andromeda:latest

If you are interested in running your own QUEST-like class with your own satellite data CSV, you could create a few line Dockerfile, add your CSV, and host your own version Andromeda on your HF account. Settings for the app can be changed in .env. Options for .env:

  • BACKEND_WORKERS - number of workers used by gunicorn
  • ANDROMEDA_RGB_SATELLITE_URL - URL pointing to a CSV file for joining RGB data
Clone this wiki locally