Can't Install Python with CondaPkg in Docker

I started a conversation here, but I’m under the impression that this is not a CondaPkg issue, so I’m wondering if the wider community can help.

I have a project that uses PythonCall. It works well on my computer (Windows 10, corporate laptop), but I need to wrap it in a Docker container, and I’m having a ton of trouble with that. When CondaPkg tries to install Python, the download keeps breaking.

At first, I was getting SSL errors (see github issue for details), but after setting export JULIA_SSL_NO_VERIFY_HOSTS="**", I’m now getting a 404 error trying to download micromamba.

In the docker terminal, I used DebugArtifacts and got:

[ Info: Platform: Linux x86_64 {cxxstring_abi=cxx11, julia_version=1.8.2, libc=glibc, libgfortran_version=5.0.0, libstdcxx_version=3.4.29}
Julia Version 1.8.2
Commit 36034abf260 (2022-09-29 15:21 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 4 × 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, tigerlake)
  Threads: 1 on 4 virtual cores
  JULIA_GPG = 3673DF529D9049477F76B37566E3C7DC03D6E495
  JULIA_PATH = /usr/local/julia

[ Info: Downloading Artifacts.toml to /tmp/jl_fcFOdQ/Artifacts.toml...
ERROR: HTTP/1.1 404 Not Found while requesting
  [1] #3
    @ /usr/local/julia/share/julia/stdlib/v1.8/Downloads/src/Downloads.jl:243 [inlined]
  [2] open(f::Downloads.var"#3#4"{Nothing, Vector{Pair{String, String}}, Float64, Pkg.PlatformEngines.var"#16#18"{Base.TTY, Pkg.MiniProgressBars.MiniProgressBar}, Bool, Nothing, Nothing, String}, args::String; kwargs::Base.Pairs{Symbol, Bool, Tuple{Symbol, Symbol}, NamedTuple{(:write, :lock), Tuple{Bool, Bool}}})
    @ Base ./io.jl:384
  [3] #open_nolock#1
    @ /usr/local/julia/share/julia/stdlib/v1.8/ArgTools/src/ArgTools.jl:35 [inlined]
  [4] arg_write(f::Function, arg::String)
    @ ArgTools /usr/local/julia/share/julia/stdlib/v1.8/ArgTools/src/ArgTools.jl:103
  [5] #download#2
    @ /usr/local/julia/share/julia/stdlib/v1.8/Downloads/src/Downloads.jl:230 [inlined]
  [6] download(url::String, dest::String; verbose::Bool, headers::Vector{Pair{String, String}}, auth_header::Nothing, io::Base.TTY)
    @ Pkg.PlatformEngines /usr/local/julia/share/julia/stdlib/v1.8/Pkg/src/PlatformEngines.jl:285
  [7] (::DebugArtifacts.var"#4#5"{String, Base.BinaryPlatforms.Platform})(tmp_dir::String)
    @ DebugArtifacts ~/.julia/packages/DebugArtifacts/swudP/src/DebugArtifacts.jl:61
  [8] mktempdir(fn::DebugArtifacts.var"#4#5"{String, Base.BinaryPlatforms.Platform}, parent::String; prefix::String)
    @ Base.Filesystem ./file.jl:764
  [9] mktempdir (repeats 2 times)
    @ ./file.jl:760 [inlined]
 [10] debug_artifact(artifact_name::String, platform::Base.BinaryPlatforms.Platform; artifacts_toml::Nothing)
    @ DebugArtifacts ~/.julia/packages/DebugArtifacts/swudP/src/DebugArtifacts.jl:53
 [11] debug_artifact (repeats 2 times)
    @ ~/.julia/packages/DebugArtifacts/swudP/src/DebugArtifacts.jl:42 [inlined]
 [12] top-level scope
    @ REPL[6]:1

I’d really appreciate any ideas you might have in solving this.