-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
57 lines (44 loc) · 978 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Command Help
# Build:
# docker build -t HDI-Project/MTV .
#
# Run:
# docker run -it HDI-Project/MTV
#
# Compose:
# docker-compose up -d
# start from base
FROM ubuntu:18.04
LABEL maintainer="Dongyu Liu <[email protected]>"
# install utilities
RUN apt-get update -yqq \
&& apt-get install -yqq \
unzip \
curl \
git \
ssh \
gcc \
make \
build-essential \
libkrb5-dev \
sudo \
apt-utils
# install python
RUN apt-get install -y python3-pip python3-dev \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python \
&& pip3 install --upgrade pip
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# copy our application code
ADD . /sintel
WORKDIR /sintel
# install application packages for python and node
# RUN make install
RUN pip install -e .
# Set system environment variables if any
# e.g., ENV NODE_ENV development
# 80 = HTTP, 443 = HTTPS, 3000 = MTV server
# EXPOSE 80 443 3000
# start app
# CMD [ "python", "./run-server.py" ]