Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • ecma_2015
  • gulp_v4
  • upgrade_js_libs
  • Vivakvo/cesium-patch-8
  • issue_4
  • issue_780
  • gitlab_migration_1
  • dev
  • rml8
  • v1.6.7
  • v1.6.6
  • v1.6.5
  • v1.6.4
  • v1.6.3
  • v1.6.2
  • v1.6.2-alpha
  • v1.6.1
  • v1.6.0
  • v1.5.12
  • v1.5.11
  • v1.5.10
  • v1.5.9
  • v1.5.8
  • v1.5.7
  • v1.5.6
  • v1.5.5
  • v1.5.4
  • v1.5.3
  • v1.5.2
30 results

Dockerfile

Blame
  • Benoit Lavenier's avatar
    Benoit Lavenier authored
    [enh] Migrate to nodejs 16.17.0
    [enh] Use ionic cli 6.20.9 (v7 not support Ionic v1 anymore)
    [fix] Remove cordova-plugin-whitelist and cordova-plugin-compat (not need anymore)
    c7c99acf
    History
    Dockerfile 1.25 KiB
    FROM  node:12
    LABEL maintainer="benoit [dot] lavenier [at] e-is [dot] pro"
    LABEL version="1.7.0-rc1"
    LABEL description="Cesium Wallet for Ğ1 libre currency"
    
    ARG CESIUM_VER="1.7.0-rc1"
    
    ENV DEBIAN_FRONTEND=noninteractive \
        NODE_VERSION=16.17.0 \
        NPM_VERSION=8.3.0 \
        YARN_VERSION=1.22.17 \
        IONIC_CLI_VERSION=6.20.9 \
        CORDOVA_VERSION=10.0.0 \
        GRADLE_VERSION=6.5.1 \
        GULP_VERSION=4.0.2
    
    # Install basics
    RUN apk update && \
            apk add ca-certificates wget curl git && \
            update-ca-certificates && \
        apk add --update python make g++
    
    # create group and user cesium
    RUN addgroup -S -g 1111 cesium && \
    	adduser -SD -h /cesium -G cesium -u 1111 cesium
    #RUN mkdir -p /var/lib/cesium /etc/cesium && chown cesium:cesium /var/lib/cesium /etc/cesium
    
    # Install global dependencies
    RUN yarn global add gulp@"$GULP_VERSION" @ionic/cli@"$IONIC_CLI_VERSION"
    
    # copy source tree
    COPY ./ ./
    
    RUN test -f package.json || git clone https://github.com/duniter/cesium.git && cd cesium
    
    # Install project dependencies
    # Workaround need for node-sass (- )see https://github.com/yarnpkg/yarn/issues/4867)
    RUN yarn install --ignore-engines && \
        yarn remove node-sass && yarn add node-sass
    
    WORKDIR /cesium
    EXPOSE 8100 35729
    CMD ["yarn", "run", "start"]