diff --git a/Dockerfile b/.devcontainer/Dockerfile similarity index 81% rename from Dockerfile rename to .devcontainer/Dockerfile index 466445eb..ccff69f5 100644 --- a/Dockerfile +++ b/.devcontainer/Dockerfile @@ -3,9 +3,13 @@ FROM python:3.11 # Update the system and install the packages RUN apt-get update && apt-get install -y \ + git-lfs \ openmpi-bin \ openmpi-doc \ - libopenmpi-dev + libopenmpi-dev \ + gdal-bin \ + libgdal-dev + # Set the working directory to /app WORKDIR /app @@ -17,6 +21,6 @@ COPY . /app RUN mkdir -p /app/output # Install any needed packages specified in pyproject.toml -RUN pip install . +RUN pip install --editable ".[dev]" CMD ["/bin/bash"] \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..43a4a24b --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,26 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile +{ + "name": "Existing Dockerfile", + "build": { + // Sets the run context to one level up instead of the .devcontainer folder. + "context": "..", + // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. + "dockerfile": "Dockerfile" + } + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Uncomment the next line to run commands after the container is created. + // "postCreateCommand": "cat /etc/os-release", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "devcontainer" +}