diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..add74ee --- /dev/null +++ b/.dockerignore @@ -0,0 +1,11 @@ +.git +.gitignore +__pycache__/ +*.py[cod] +.venv/ +venv/ +env/ +.pytest_cache/ +.mypy_cache/ +.ruff_cache/ +.DS_Store diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a541ffe --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +# Python cache and bytecode +__pycache__/ +*.py[cod] +*$py.class + +# Virtual environments +.venv/ +venv/ +env/ + +# Tooling caches +.pytest_cache/ +.mypy_cache/ +.ruff_cache/ +.coverage +htmlcov/ + +# IDE/editor files +.vscode/ +.idea/ +*.swp +*.swo + +# OS files +.DS_Store +Thumbs.db diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..826307e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM python:3.11-slim + +WORKDIR /workspace + +RUN apt-get update \ + && apt-get install -y --no-install-recommends git ca-certificates \ + && rm -rf /var/lib/apt/lists/* + +CMD ["bash"] diff --git a/README.md b/README.md index 07a5807..c6b2958 100644 --- a/README.md +++ b/README.md @@ -1 +1,29 @@ -# Codex \ No newline at end of file +# Repozytorium Bazowe + +To repozytorium zawiera podstawową konfigurację startową: +- `.gitignore` dla typowych plików lokalnych i cache narzędzi. +- `Dockerfile` do uruchamiania środowiska roboczego w kontenerze. +- `.dockerignore` ograniczający kontekst buildu obrazu. + +## Uruchomienie kontenera + +Zbuduj obraz: + +```bash +docker build -t codex-workspace . +``` + +Uruchom kontener: + +```bash +docker run --rm -it -v "$(pwd):/workspace" codex-workspace +``` + +## Klonowanie zewnętrznego repozytorium (opcjonalnie) + +Jeśli chcesz zainicjalizować to repozytorium zawartością projektu `langchain-ai/langchain`, +wykonaj lokalnie (poza tym środowiskiem): + +```bash +gh repo clone langchain-ai/langchain . +```