# HG changeset patch # User Goffi # Date 1528026170 -7200 # Node ID 82f8982895c8c7df655f67b881648cad01d77c8b # Parent 4ef8e5b2df0ee3dc9d874778c5e8006b547edadd docker: added an image with Pyjamas installed diff -r 4ef8e5b2df0e -r 82f8982895c8 docker/pyjamas/Dockerfile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docker/pyjamas/Dockerfile Sun Jun 03 13:42:50 2018 +0200 @@ -0,0 +1,33 @@ +############################################################### +# # +# Salut à Toi/Pyjamas # +# This Dockerfile build an image with Pyjamas installed # +# Pyjamas is a Python 2 => JS compiler used by Libervia # +# # +############################################################### + +FROM debian:jessie + +MAINTAINER Goffi + +######## +# BASE # +######## + +ENV DEBIAN_FRONTEND noninteractive + +RUN useradd -m sat +RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends locales python + +# we want UTF-8 locale +RUN sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen && locale-gen +ENV LC_ALL en_US.UTF-8 + +WORKDIR /home/sat +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()' +WORKDIR /home/sat/pyjamas +RUN python bootstrap.py +ENV PATH="/home/sat/pyjamas/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + +WORKDIR /home/sat +USER sat