-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
45 lines (35 loc) · 1.05 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM ubuntu:15.04
MAINTAINER André Dumas
# Instructions as per https://developer.pebble.com/sdk/install/linux/
# Install dependencies
RUN apt-get update && apt-get install -y \
curl \
python2.7-dev \
python-pip \
libfreetype6
# Install Pebble Tool
ENV PEBBLE_TOOL_VERSION pebble-sdk-4.1.1-linux64
ENV PEBBLE_PATH /root/pebble-dev
ENV PEBBLE_HOME $PEBBLE_PATH/$PEBBLE_TOOL_VERSION
ENV PATH $PEBBLE_HOME/bin:$PATH
RUN mkdir -p $PEBBLE_PATH
RUN curl -sSL https://s3.amazonaws.com/assets.getpebble.com/pebble-tool/$PEBBLE_TOOL_VERSION.tar.bz2 \
| tar -v -C $PEBBLE_PATH -xj
WORKDIR $PEBBLE_HOME
RUN /bin/bash -c " \
pip install virtualenv \
&& virtualenv --no-site-packages .env \
&& source .env/bin/activate \
&& pip install -r requirements.txt \
&& deactivate \
"
RUN /bin/bash -c " \
mkdir -p /root/.pebble-sdk \
&& touch /root/.pebble-sdk/NO_TRACKING \
"
# Install Pebble SDK
ENV PEBBLE_SDK_VERSION 3.9.2
RUN yes | pebble sdk install $PEBBLE_SDK_VERSION
VOLUME /pebble
WORKDIR /pebble
ENTRYPOINT ["pebble"]