{"id":40646230,"url":"https://github.com/pawelstroinski/dockerfile-stevia","last_synced_at":"2026-01-21T08:17:40.025Z","repository":{"id":204951024,"uuid":"713042463","full_name":"PawelStroinski/dockerfile-stevia","owner":"PawelStroinski","description":"Write your Dockerfiles in Clojure (or Babashka).","archived":false,"fork":false,"pushed_at":"2023-11-04T17:26:11.000Z","size":25,"stargazers_count":18,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-01-29T08:48:18.487Z","etag":null,"topics":["babashka","clojure","dockerfile","dsl"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PawelStroinski.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-11-01T18:09:08.000Z","updated_at":"2024-01-11T02:15:35.000Z","dependencies_parsed_at":"2024-01-01T08:13:39.187Z","dependency_job_id":"9f11f6d0-d6ec-4e63-9e5c-986edf956af5","html_url":"https://github.com/PawelStroinski/dockerfile-stevia","commit_stats":{"total_commits":29,"total_committers":2,"mean_commits":14.5,"dds":0.03448275862068961,"last_synced_commit":"90bada1dddb2debcc9ebb0bb2e42a57ec4ff6676"},"previous_names":["pawelstroinski/dockerfile-stevia"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/PawelStroinski/dockerfile-stevia","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PawelStroinski%2Fdockerfile-stevia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PawelStroinski%2Fdockerfile-stevia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PawelStroinski%2Fdockerfile-stevia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PawelStroinski%2Fdockerfile-stevia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PawelStroinski","download_url":"https://codeload.github.com/PawelStroinski/dockerfile-stevia/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PawelStroinski%2Fdockerfile-stevia/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28630025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babashka","clojure","dockerfile","dsl"],"created_at":"2026-01-21T08:17:39.477Z","updated_at":"2026-01-21T08:17:40.020Z","avatar_url":"https://github.com/PawelStroinski.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dockerfile-stevia 🍃\n\nWrite your Dockerfiles in Clojure (or Babashka).\n\nThe idea is that sometimes it might be beneficial to\nwrite [Dockerfiles](https://docs.docker.com/engine/reference/builder/) programmatically to gain composability and code\nreuse.\n\nHere are some trivial examples of both Hiccup-like and functional syntaxes.\n\n```clojure\n(require '[dockerfile.stevia :as s])\n\n(s/format\n  [[:from \"eclipse-temurin:17\"]\n   [:env :DEBIAN_FRONTEND :noninteractive]\n   [:run \"apt-get update\"]\n   [:add \"target/my_app.jar\" \"version.properties*\" \"/data/\"]\n   [:expose 9000]\n   [:cmd\n    [\"cd\" \"/data/\"]\n    [\"java -cp /data/ -jar my_app.jar\"]]])\n=\u003e\n\"FROM eclipse-temurin:17\n ENV DEBIAN_FRONTEND noninteractive\n RUN apt-get update\n ADD target/my_app.jar version.properties* /data/\n EXPOSE 9000\n CMD cd /data/ \u0026\u0026 java -cp /data/ -jar my_app.jar\"\n\n;; Note how the CMD was automatically \u0026\u0026-ed. \n\n(-\u003e (s/from \"eclipse-temurin:17\")\n    (s/env :DEBIAN_FRONTEND :noninteractive)\n    (s/run \"apt-get update\")\n    (s/add \"target/my_app.jar\" \"version.properties*\" \"/data/\")\n    (s/expose 9000)\n    (s/cmd [\"cd\" \"/data/\"]\n           [\"java -cp /data/ -jar my_app.jar\"])\n    (s/format))\n=\u003e\n;; Same as above.\n```\n\n## Other features\n\n### Here-Document\n\n```clojure\n(-\u003e (s/run \"echo hello\\necho world\")\n    s/format)\n=\u003e\n\"RUN \u003c\u003cEOF\n echo hello\n echo world\n EOF\"\n```\n\n### Exec form\n\n```clojure\n(-\u003e (s/run [\"/bin/bash\" \"-c\" \"echo hello\"])\n    s/format\n    println)\n=\u003e\nRUN [\"/bin/bash\", \"-c\", \"echo hello\"]\n```\n\n### Map arguments\n\n```clojure\n(-\u003e (s/add {:chown :myuser:mygroup :chmod 655} \"files*\" \"/somedir/\")\n    (s/copy {:link true} \"/foo /bar\")\n    s/format)\n=\u003e\n\"ADD --chown=myuser:mygroup --chmod=655 files* /somedir/\n COPY --link /foo /bar\"\n ```\n\n---\n\nThis library has been heavily inspired by [Honey SQL](https://github.com/seancorfield/honeysql).\n\n## License\n\nCopyright © 2023 Paweł Stroiński\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawelstroinski%2Fdockerfile-stevia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpawelstroinski%2Fdockerfile-stevia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawelstroinski%2Fdockerfile-stevia/lists"}