-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from nxtlytics/ubuntu-2004
Updating to ubuntu 2004 and adding python 3.9
- Loading branch information
Showing
10 changed files
with
81 additions
and
9 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM nxtlytics/base:v0.0.2 | ||
|
||
# Ensure system is up to date and install tools | ||
RUN echo 'deb http://archive.ubuntu.com/ubuntu/ bionic-proposed restricted main multiverse universe' > /etc/apt/sources.list.d/bionic-proposed.list && \ | ||
apt-get update && \ | ||
apt-get install -y \ | ||
git \ | ||
python3.9 \ | ||
python3.9-venv \ | ||
python3.9-dev \ | ||
python3-pip && \ | ||
curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && \ | ||
python3.9 /tmp/get-pip.py && \ | ||
hash -r && \ | ||
python3.9 -m pip install pipenv && \ | ||
python3.9 -m pip install poetry | ||
|
||
ADD .VERSION /opt/ivy/meta/PYTHON39_VERSION |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# docker-base-python39 | ||
|
||
A ubuntu-based Python 3.9 base container | ||
|
||
[DockerHUB repository](https://hub.docker.com/r/nxtlytics/python39) | ||
|
||
## How do I use this? | ||
|
||
In your `dockerfile`: | ||
``` | ||
FROM nxtlytics/python39:<pick a tag from hub.docker.com> | ||
# Add your source files | ||
ADD app/ /app | ||
# Install pipenv dependencies | ||
RUN pipenv install | ||
# Set command, make sure your main app is named `main.py` | ||
CMD pipenv run /app/main.py | ||
``` | ||
|
||
## What *should* I use this for? | ||
|
||
Use this as a starting point for: | ||
|
||
- Applications using Python 3.9 as their runtime | ||
|
||
## What should I not use this for? | ||
|
||
This is not the place for: | ||
|
||
- Large uncommon libraries (CUDA/ML) | ||
- Architecture-specific (ARM, etc) tooling or compilers | ||
|
||
## Found a bug? Got suggestions? | ||
|
||
Open an issue, or make a PR if you have suggested changes here. |