-
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 #9 from d33bs/development
update repo in prep for org transfer
- Loading branch information
Showing
2 changed files
with
13 additions
and
6 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,24 +1,31 @@ | ||
FROM python:3 | ||
|
||
# set various metadata, loosely following biocontainers standards from: | ||
# https://biocontainers-edu.readthedocs.io/en/latest/what_is_biocontainers.html | ||
LABEL base_image="python:3" | ||
LABEL software="wintry" | ||
LABEL about.summary="An example project leveraging various automation." | ||
LABEL about.home="https://github.com/d33bs/test-semver-docker-deploy" | ||
LABEL about.documentation="https://github.com/d33bs/test-semver-docker-deploy" | ||
LABEL about.license_file="https://github.com/d33bs/test-semver-docker-deploy/LICENSE" | ||
LABEL about.home="https://github.com/CU-DBMI/demo-poetry-dynamic-semver-with-docker-hub-push" | ||
LABEL about.documentation="https://github.com/CU-DBMI/demo-poetry-dynamic-semver-with-docker-hub-push" | ||
LABEL about.license_file="https://github.com/CU-DBMI/demo-poetry-dynamic-semver-with-docker-hub-push/blob/main/LICENSE" | ||
LABEL about.license="SPDX:BSD-3-Clause" | ||
LABEL about.tags="general" | ||
|
||
WORKDIR /usr/src/app | ||
# set the workdir to /app | ||
WORKDIR /app | ||
|
||
# copy pyproject and poetry lockfile for stepped installation | ||
COPY pyproject.toml poetry.lock ./ | ||
|
||
# install poetry and poetry dynamic versioning | ||
# hadolint ignore=DL3013 | ||
RUN pip install --no-cache-dir poetry poetry-dynamic-versioning | ||
|
||
# copy the rest of the repository | ||
COPY . . | ||
|
||
# install the project from poetry | ||
RUN poetry install --no-interaction | ||
|
||
# set an alias for running python through the poetry env | ||
# hadolint ignore=DL3059 | ||
RUN echo 'alias python="poetry run python"' >> ~/.bashrc |