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.
This commit is contained in:
Matthew Macdonald-Wallace 2021-03-17 17:07:04 +00:00
parent c7b6ebe709
commit 6452a0de74

15
Dockerfile Normal file
View file

@ -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