From 6452a0de742292ad822569d993748cc7fa38c471 Mon Sep 17 00:00:00 2001 From: Matthew Macdonald-Wallace Date: Wed, 17 Mar 2021 17:07:04 +0000 Subject: [PATCH] Add Dockerfile to run service in a container Fixes #75 NOTE: At the moment, the focalboard version is hard-coded and there is a bug that means the download is not actually a .tar.gz file, but a .tgz.gz file inside a .zip file. --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..9fe94425b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM ubuntu:latest + +RUN apt update +RUN apt upgrade -y +RUN apt install -y wget tar gzip unzip file +RUN wget https://releases.mattermost.com/focalboard/0.5.0/focalboard-server-linux-amd64.tar.gz +RUn unzip -o focalboard-server-linux-amd64.tar.gz +RUN tar -xvzf focalboard-server-linux-amd64.tar.gz +RUN mv focalboard /opt + +EXPOSE 8000 + +WORKDIR /opt/focalboard + +CMD /opt/focalboard/bin/focalboard-server