diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 00000000..2a78cb35
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,2 @@
+examples
+.github
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..341eacee
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,16 @@
+# Build the go application into a binary
+FROM golang:alpine as builder
+WORKDIR /app
+ADD . ./
+RUN CGO_ENABLED=0 GOOS=linux go build -mod vendor -a -installsuffix cgo -o gatus .
+RUN apk --update add ca-certificates
+
+# Run the binary on an empty container
+FROM scratch
+COPY --from=builder /app/gatus .
+COPY --from=builder /app/config.yaml .
+COPY --from=builder /app/static static/
+COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
+ENV PORT 80
+EXPOSE 80
+ENTRYPOINT ["/gatus"]
\ No newline at end of file
diff --git a/README.md b/README.md
index 61865580..e635e809 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,7 @@
# gatus (in progress)
-A service health dashboard in Go
-
-
-## Draft
-
-![draft](assets/draft.jpg)
+A service health dashboard in Go that is meant to be used as a docker
+image with a custom configuration file.
## Usage
@@ -14,8 +10,8 @@ A service health dashboard in Go
services:
- name: twinnation # Name of your service, can be anything
url: https://twinnation.org/actuator/health
- interval: 15s # Duration to wait between every status check (opt. default: 10s)
- failure-threshold: 3
+ interval: 15s # Duration to wait between every status check (opt. default: 10s)
+ failure-threshold: 3
conditions:
- "$STATUS == 200"
- name: github
@@ -30,3 +26,15 @@ services:
```
go test ./... -mod vendor
```
+
+
+## Building with Docker
+
+```
+docker build . -t gatus
+```
+
+
+## Using in Production
+
+See the [example](example) folder.
diff --git a/assets/draft.jpg b/assets/draft.jpg
deleted file mode 100644
index e9ab3be3..00000000
Binary files a/assets/draft.jpg and /dev/null differ
diff --git a/static/index.html b/static/index.html
index 284f6ac6..e5d5bdd5 100644
--- a/static/index.html
+++ b/static/index.html
@@ -23,10 +23,10 @@
-
+