Add Dockerfile Import/Migration Tool

Open
#40 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, dockerfile, python, yaml
Domain
cli, tooling

Research direction

No files are named, so start from the CLI entry point that dispatches subcommands and the config schema the tool should emit YAML/TOML into; read the parent issue #53 for the consolidated plan. The working example is pycontainer import Dockerfile > pycontainer.yaml, so done means that command parses common instructions (multi-stage, build args) and prints a valid config, plus a migration guide noting caveats. Scope is broad and there are no pointers to code, so treat the parsing layer and the mapping layer as separate pieces and confirm the intended config keys with a maintainer before writing anything.

Written by the indexing model from the issue text.

Description

compatibility enhancement medium-priority

Description

Add tool to parse and convert existing Dockerfiles to pycontainer configuration.

Proposed Implementation

  • Parse Dockerfile instructions
  • Map to pycontainer config YAML/TOML
  • Provide migration guide with caveats
  • Handle common patterns (multi-stage, build args, etc.)

Use Cases

  • Migrating from Docker to pycontainer
  • Learning pycontainer from existing Dockerfiles
  • Hybrid Docker/pycontainer workflows

Example

pycontainer import Dockerfile > pycontainer.yaml

Parent: #53 (consolidated from #39 on 2026-11-22)

Dominant language
Python
Stars
10
Forks
1
Avg merge
1d 19h
Merged PRs (30d)
129

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spboyer/pycontainer-build

All issues in spboyer/pycontainer-build

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.