#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../../

docker pull ghcr.io/commaai/openpilot-base-cl:latest
docker build \
  --cache-from ghcr.io/commaai/openpilot-sim:latest \
  -t ghcr.io/commaai/openpilot-sim:latest \
  -f tools/sim/Dockerfile.sim .