Split RUN commands into two layers
This commit is contained in:
parent
6452a0de74
commit
0b58cf8f1f
1 changed files with 10 additions and 7 deletions
17
Dockerfile
17
Dockerfile
|
@ -1,12 +1,15 @@
|
||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
|
||||||
RUN apt update
|
# Make sure that the underlying container is patched to the latest versions
|
||||||
RUN apt upgrade -y
|
RUN apt update && \
|
||||||
RUN apt install -y wget tar gzip unzip file
|
apt upgrade -y && \
|
||||||
RUN wget https://releases.mattermost.com/focalboard/0.5.0/focalboard-server-linux-amd64.tar.gz
|
apt install -y wget tar gzip unzip file
|
||||||
RUn unzip -o focalboard-server-linux-amd64.tar.gz
|
|
||||||
RUN tar -xvzf focalboard-server-linux-amd64.tar.gz
|
# Now install Focalboard as a seperate layer
|
||||||
RUN mv focalboard /opt
|
RUN wget https://releases.mattermost.com/focalboard/0.5.0/focalboard-server-linux-amd64.tar.gz && \
|
||||||
|
unzip -o focalboard-server-linux-amd64.tar.gz && \
|
||||||
|
tar -xvzf focalboard-server-linux-amd64.tar.gz && \
|
||||||
|
mv focalboard /opt
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue