-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (21 loc) · 890 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Set the base image
FROM ubuntu:14.04
# File Author / Maintainer
MAINTAINER Arnaud Meng <[email protected]>
# make sure the package repository is up to date
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y wget
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y ruby
# set installation directory
WORKDIR /usr/bin/
# download binary & untar/uncompress
RUN wget --no-check-certificate https://bintray.com/artifact/download/blahah/generic/transrate-1.0.3-linux-x86_64.tar.gz
# install
RUN tar xvf transrate-1.0.3-linux-x86_64.tar.gz
RUN chmod a+xr -R /usr/bin/transrate-1.0.3-linux-x86_64/
RUN /usr/bin/transrate-1.0.3-linux-x86_64/transrate --install-deps ref
# add to path
ENV PATH="/usr/bin/transrate-1.0.3-linux-x86_64:${PATH}"
ENV PATH="/usr/bin/transrate-1.0.3-linux-x86_64/bin:${PATH}"
# clean
RUN apt-get clean