2017-11-07 13:41:38 +00:00
|
|
|
############################################################
|
|
|
|
# Dockerfile for openmtc sdk binary environment
|
|
|
|
############################################################
|
|
|
|
|
|
|
|
# Set the base image to use openmtc/base
|
|
|
|
FROM openmtc/base-amd64:latest
|
|
|
|
|
|
|
|
ENV MOD_NAME=sdk
|
|
|
|
|
|
|
|
# Set the file maintainer
|
|
|
|
MAINTAINER rst/tgu
|
|
|
|
|
2018-06-12 12:27:44 +00:00
|
|
|
# update pip to latest version
|
2019-02-14 14:41:53 +00:00
|
|
|
RUN pip3 install --upgrade pip
|
2018-06-12 12:27:44 +00:00
|
|
|
|
2017-11-07 13:41:38 +00:00
|
|
|
# install openmtc dependencies
|
|
|
|
COPY tmp/$MOD_NAME-dependencies.txt /tmp/requirements.txt
|
2019-02-14 14:41:53 +00:00
|
|
|
RUN pip3 install --upgrade --requirement /tmp/requirements.txt
|
2017-11-07 13:41:38 +00:00
|
|
|
|
|
|
|
# install openmtc-sdk
|
|
|
|
COPY tmp/openmtc-$MOD_NAME.tar.gz /tmp/openmtc-$MOD_NAME.tar.gz
|
|
|
|
RUN tar xzf /tmp/openmtc-$MOD_NAME.tar.gz -C / \
|
|
|
|
--owner root --group root --no-same-owner --no-overwrite-dir \
|
|
|
|
--transform 's/json\.dist/json/' --show-transformed
|