comparison docker/pyjamas/Dockerfile @ 127:82f8982895c8

docker: added an image with Pyjamas installed
author Goffi <goffi@goffi.org>
date Sun, 03 Jun 2018 13:42:50 +0200
parents
children
comparison
equal deleted inserted replaced
126:4ef8e5b2df0e 127:82f8982895c8
1 ###############################################################
2 # #
3 # Salut à Toi/Pyjamas #
4 # This Dockerfile build an image with Pyjamas installed #
5 # Pyjamas is a Python 2 => JS compiler used by Libervia #
6 # #
7 ###############################################################
8
9 FROM debian:jessie
10
11 MAINTAINER Goffi <goffi@goffi.org>
12
13 ########
14 # BASE #
15 ########
16
17 ENV DEBIAN_FRONTEND noninteractive
18
19 RUN useradd -m sat
20 RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends locales python
21
22 # we want UTF-8 locale
23 RUN sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen && locale-gen
24 ENV LC_ALL en_US.UTF-8
25
26 WORKDIR /home/sat
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()'
28 WORKDIR /home/sat/pyjamas
29 RUN python bootstrap.py
30 ENV PATH="/home/sat/pyjamas/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
31
32 WORKDIR /home/sat
33 USER sat