Skip to content

Commit

Permalink
update dockerfile and reqs.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
johnclary committed Oct 13, 2020
1 parent 4c9bc9a commit 4e10ef1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 29 deletions.
29 changes: 8 additions & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
# # Proceed to install the requirements...do
RUN cd /app/atd-service-bot && apt-get update && \
pip install -r requirements.txt
11 changes: 3 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
atd-args-util
atd-email-util
atd-jobs-util
atd-log-util
knackpy
pygithub
pyyaml
requests
knackpy==1.0.*
pygithub==1.53.*
requests==2.24.*

0 comments on commit 4e10ef1

Please sign in to comment.