-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
37 lines (24 loc) · 1023 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
29
30
31
32
33
34
35
36
37
# Project MCM
#
# Copyright (C) <2015-2017> Tim Waizenegger, <University of Stuttgart>
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
FROM python:3.6
MAINTAINER Tim Waizenegger <[email protected]>
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
#RUN git clone https://github.com/sdos/bluebox-webui.git
ADD . bluebox-webui
WORKDIR bluebox-webui
RUN mkdir -p /etc/apt/preferences.d && mv nodesource /etc/apt/preferences.d/ && apt-get install -y nodejs yarn
RUN cp mcm/Bluebox/configuration.example.py mcm/Bluebox/configuration.py
RUN pip install -r requirements.txt
WORKDIR mcm/Bluebox/angular
# workaround for bad js package @11.04.2017
RUN yarn install; exit 0;
RUN yarn install
COPY bluebox.sh /
EXPOSE 8000
ENTRYPOINT ["/bluebox.sh"]