view docker/pyjamas/Dockerfile @ 138:274af514a5cf

flatpak: reworked packages + made a building script: a new `build_manifest.py` script can now be used to generate flatpak manifests for every frontend of SàT. The manifest can be used both for development versions and stable ones. Templates files (in the form `_tmp_<app-id>.json`) are used to set building instructions. A common runtime specific to SàT has been abandoned following a discussion on the official mailing list. A small wrapper is now used to launch backend automatically if it's not found. Desktop and app metadata have been added for Cagou. Jp and Primitivus don't have appdata and desktop files yet.
author Goffi <goffi@goffi.org>
date Sat, 22 Jun 2019 15:59:07 +0200
parents 82f8982895c8
children
line wrap: on
line source

###############################################################
#                                                             #
#                      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 <goffi@goffi.org>

########
# 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