Skip to content

Commit 65555c9

Browse files
committed
Docker container for website
Signed-off-by: Vishal Rana <[email protected]>
1 parent bf0418b commit 65555c9

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

website/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM labstack/armor:0.4.11
2+
3+
COPY armor.yaml etc/armor/config.yaml
4+
COPY public/ /var/www/
5+
6+
CMD ["-c", "/etc/armor/config.yaml"]

website/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1+
IMAGE = labstack/armor-web
2+
13
build:
24
rm -rf public && hugo
5+
docker build -t $(IMAGE) .
6+
7+
push: build
8+
docker push $(IMAGE)

website/armor.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
address: :80
2+
plugins:
3+
- name: logger
4+
- name: static
5+
root: /var/www

0 commit comments

Comments
 (0)