Mercurial > sat_docs
comparison docker_legacy/pyjamas/Dockerfile @ 164:29873a41aae1
docker: new docker files are now in sat main repos, this one is legacy
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 01 Jan 2021 18:33:52 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
163:a63f6d360326 | 164:29873a41aae1 |
---|---|
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 |