-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
49 lines (40 loc) · 1.81 KB
/
dockerfile
File metadata and controls
49 lines (40 loc) · 1.81 KB
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
# docker images
# docker run --name april -it 8d68ea8cc930 bash
# docker rm april
# docker attach april
FROM ubuntu:latest
ENV UNAME pi
RUN apt-get -y update && apt-get -y upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install apt-utils
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install mplayer pulseaudio
RUN DEBIAN_FRONTEND=noninteractive apt-get install --yes pulseaudio-utils
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install bluetooth bluez bluez-tools rfkill git
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python3 python-gobject python3-pip
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install git
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install festival
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install php apache2 libapache2-mod-php
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install vim nano
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install sudo
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install usbutils
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install expect
# this is required for numpy
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install libatlas-base-dev
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install cron
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install wget
# required for ifconfig and ping
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install net-tools iputils-ping
ENV TZ=Europe/London
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY pulse-client.conf /etc/pulse/client.conf
RUN echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
RUN useradd -G sudo,lp,bluetooth,www-data -ms /bin/bash pi
RUN gpasswd -a pi audio
RUN echo "Set disable_coredump false" >> /etc/sudo.conf
USER $UNAME
WORKDIR /home/pi
COPY . /home/pi/smartbot/
USER root
RUN chown -R pi:pi /home/pi/smartbot
USER $UNAME
WORKDIR /home/pi
RUN mkdir Music