Mercurial > sat_docs
annotate docker/pyjamas/Dockerfile @ 129:bcfe5f20d6e8
screenshot (0.7): renamed ticket screenshot after typo
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 05 Jul 2018 14:10:30 +0200 |
parents | 82f8982895c8 |
children |
rev | line source |
---|---|
127
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
1 ############################################################### |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 # # |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
3 # Salut à Toi/Pyjamas # |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
4 # This Dockerfile build an image with Pyjamas installed # |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 # Pyjamas is a Python 2 => JS compiler used by Libervia # |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 # # |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 ############################################################### |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
9 FROM debian:jessie |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
10 |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
11 MAINTAINER Goffi <goffi@goffi.org> |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
12 |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
13 ######## |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
14 # BASE # |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
15 ######## |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
16 |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
17 ENV DEBIAN_FRONTEND noninteractive |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
18 |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
19 RUN useradd -m sat |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
20 RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends locales python |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
21 |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
22 # we want UTF-8 locale |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
23 RUN sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen && locale-gen |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
24 ENV LC_ALL en_US.UTF-8 |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
25 |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
26 WORKDIR /home/sat |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
27 RUN python -c 'import urllib2,tarfile,cStringIO;tar=tarfile.open(fileobj=cStringIO.StringIO(urllib2.urlopen("ftp://ftp.goffi.org/pyjamas/pyjamas.tar.bz2").read()));tar.extractall()' |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
28 WORKDIR /home/sat/pyjamas |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
29 RUN python bootstrap.py |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
30 ENV PATH="/home/sat/pyjamas/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
31 |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
32 WORKDIR /home/sat |
82f8982895c8
docker: added an image with Pyjamas installed
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
33 USER sat |