forked from coursera-dl/coursera-dl
-
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.
Update Dockerfile to use Python3.6 and install from PyPI package
Also update README and CONTRIBUTING guides with the information on how to build and run Docker image.
- Loading branch information
Showing
3 changed files
with
39 additions
and
17 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
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,21 +1,14 @@ | ||
FROM python:3.4-slim | ||
FROM python:3.6-slim | ||
|
||
LABEL maintainer "[email protected]" | ||
|
||
WORKDIR /src | ||
COPY requirements.txt /src | ||
|
||
COPY requirements-dev.txt /src | ||
LABEL maintainer "https://github.com/coursera-dl/" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends gcc g++ libssl-dev && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
pip install -r requirements.txt && \ | ||
pip install -r requirements-dev.txt && \ | ||
apt-get purge -y --auto-remove gcc g++ libssl-dev | ||
|
||
COPY . /src | ||
RUN python setup.py install | ||
ARG VERSION | ||
RUN pip install coursera-dl==$VERSION | ||
|
||
WORKDIR /courses | ||
ENTRYPOINT ["coursera-dl"] | ||
|
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