-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
68 lines (42 loc) · 1.11 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# ======================================================
#
# Build image
#
# $ sudo docker build -t mu .
#
#
# Run container
#
# $ sudo docker run -i mu:latest
#
#
# SSH into container
#
# $ sudo docker exec -it mu:latest /bin/bash
#
# ======================================================
# Base image.
FROM ubuntu:16.04
LABEL name = "mupy"
LABEL version="0.1.14"
LABEL description="Manufacturing Utility"
# Adds openscad repository to the apt-get package manager.
RUN apt update
#RUN apt -y install software-properties-common
#RUN add-apt-repository ppa:openscad/releases
# Installs openscad.
RUN apt-get install -y openscad \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /root/.local/share /.local/share
# Copy in python3 project src code.
COPY . home
WORKDIR /home
# Allows for unicode printing.
#RUN locale-gen en_US.UTF-8
#ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
# Allows commands like 'clear' to work properly.
#ENV TERM=xterm
# Install python3 project using setup.py.
# RUN setup.py install
# Execute the command line interface.
CMD [ "python3", "-m", "mupy.mucli.mucli" ]