From 4e10ef1531f8fc531bf78c78cb61098d78f3ef89 Mon Sep 17 00:00:00 2001 From: John Clary Date: Tue, 13 Oct 2020 15:44:52 -0500 Subject: [PATCH] update dockerfile and reqs.txt --- Dockerfile | 29 ++++++++--------------------- requirements.txt | 11 +++-------- 2 files changed, 11 insertions(+), 29 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9fcf0ff..c933f96 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,11 @@ -FROM python:3.6 -# Set the working directory -WORKDIR /app - -# Copy package requirements -COPY requirements.txt /app - -RUN apt-get update -RUN apt-get install dialog apt-utils -y +FROM python:3.8-slim -# Install tzdata and set timezone -RUN apt-get install -y tzdata -ENV TZ=America/Chicago -RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone - -RUN apt-get update --fix-missing -RUN apt-get install -y iputils-ping +# Copy our own application +WORKDIR /app +COPY . /app/atd-service-bot -# Update python3-pip -RUN python -m pip install pip --upgrade -RUN python -m pip install wheel +RUN chmod -R 777 /app/atd-service-bot -# Install python packages specified in requirements.txt -RUN pip install --trusted-host pypi.python.org -r requirements.txt \ No newline at end of file +# # Proceed to install the requirements...do +RUN cd /app/atd-service-bot && apt-get update && \ + pip install -r requirements.txt \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 2a3c75e..544d96a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,3 @@ -atd-args-util -atd-email-util -atd-jobs-util -atd-log-util -knackpy -pygithub -pyyaml -requests \ No newline at end of file +knackpy==1.0.* +pygithub==1.53.* +requests==2.24.* \ No newline at end of file