-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (20 loc) · 830 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
# Use an official Python runtime as a parent image
FROM python:3.6-slim
# Set this environment variable to true to set timezone on container start.
ENV SET_CONTAINER_TIMEZONE true
# Default container timezone as found under the directory /usr/share/zoneinfo/.
ENV CONTAINER_TIMEZONE America/Chicago
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
#ADD . /app
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/richsurgenor/peppy_slack_bot /app
# Install any needed packages specified in requirements.txt
RUN pip install -r requirements.txt
RUN chmod +x ./startup.sh
RUN ./startup.sh
ENV TOKEN "xb-145318380262-GDqgBNxoaR0FazurLZi4lW4e"
CMD ["python3", "bot.py"]