-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (32 loc) · 968 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
# Download base image ubuntu 18.04
FROM ubuntu:20.04
# LABEL about the custom image
LABEL maintainer="[email protected]"
LABEL version="0.1"
LABEL description="This is custom Docker Image for \
document notification - pi project."
# Install updates to base image
RUN \
apt-get update -y \
&& apt-get install -y \
&& apt update -y \
&& apt -y upgrade
RUN \
apt-get install vim -y
RUN echo "America/Los_Angeles" > /etc/timezone
RUN \
apt-get install python3 -y \
&& apt-get install python3-pip -y \
&& apt-get install sqlite -y \
&& apt install ssmtp -y \
&& apt install net-tools -y \
&& DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends install tzdata -y
RUN \
pip3 install slackclient \
&& pip3 install twilio
RUN dpkg-reconfigure -f noninteractive tzdata
RUN mkdir -p /var/notification/
COPY notification/* /var/notification/
WORKDIR /var/notification/
CMD ["python3","listen.py"]
#CMD ["/bin/bash"]