-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.* |