comparison docker/media/Dockerfile @ 21:0e78c8a4626e

Added Dockerfiles to create Docker images for easy installation + scripts to manages them. see README for details.
author Goffi <goffi@goffi.org>
date Sun, 19 Oct 2014 15:14:40 +0200
parents
children 686a8c982c3f
comparison
equal deleted inserted replaced
20:703a394b9780 21:0e78c8a4626e
1 #################################################################
2 # #
3 # Salut à Toi/media #
4 # This Dockerfile build a « Salut à Toi » base image with media #
5 # Salut à Toi is a multi-frontends multi-purposes XMPP client #
6 # #
7 #################################################################
8
9 FROM salutatoi/base:latest
10
11 MAINTAINER Goffi <goffi@goffi.org>
12
13 WORKDIR /usr/share/sat/media_tmp
14
15 # wget and tar are not installed, so we use python
16 RUN python -c 'import urllib2,tarfile,cStringIO;tar=tarfile.open(fileobj=cStringIO.StringIO(urllib2.urlopen("ftp://ftp.goffi.org/sat_media/sat_media.tar.bz2").read()));tar.extractall()'
17
18 # The media_tmp complication is due to an AUFS bug, see https://github.com/docker/docker/issues/4570
19 WORKDIR /usr/share/sat/
20 RUN mv media_tmp/sat_media* media && rmdir media_tmp
21
22 WORKDIR /home/sat