From 060762fa3666518e3857e8b8d292f0e186b6c880 Mon Sep 17 00:00:00 2001 From: tomny <20028678+tomny-dev@users.noreply.github.com> Date: Tue, 22 Jul 2025 16:35:22 -0400 Subject: [PATCH] Add example Dockerfile and docker-compose --- Dockerfile | 8 ++++++++ README.md | 14 +++++++++++++- docker-compose.yml | 5 +++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..06cff51 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +# Example Dockerfile for docker-template +FROM alpine:3 + +# Set a working directory +WORKDIR /app + +# Default command prints a message +CMD ["sh", "-c", "echo Hello from docker-template"] diff --git a/README.md b/README.md index 07b8850..4eb1976 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,14 @@ # docker-template -A template for maintaining docker images using github Actions to automate Packages +A template for maintaining docker images using GitHub Actions to automate Packages. + +This repository includes a simple example `Dockerfile` and accompanying `docker-compose.yml` to demonstrate how you might build and run a container. + +## Build the image +```sh +docker build -t docker-template . +``` + +## Run with Docker Compose +```sh +docker compose up +``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1e48c2d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,5 @@ +version: '3' +services: + app: + build: . + container_name: docker-template-example