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