Skip to content

Commit

Permalink
Simplify Dockerfile usage
Browse files Browse the repository at this point in the history
Adds dm_formatter.py to PATH so users can run it directly.
Also adds metadata to the Docker container.
  • Loading branch information
johnbradley committed Nov 3, 2022
1 parent 18e4710 commit 70e9fe7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
FROM python:3.8.10-slim-buster
LABEL "org.opencontainers.image.authors"="John Bradley <[email protected]>"
LABEL "org.opencontainers.image.description"="Tool to reformat drexel metadata JSON files"

WORKDIR /pipeline

# ADD scripts in /pipeline to the PATH
ENV PATH="/pipeline:${PATH}"

COPY dm_formatter.py /pipeline
CMD echo "python dm_formatter.py input output"
CMD echo "dm_formatter.py input output"
1 change: 1 addition & 0 deletions dm_formatter.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
# Convert drexel_metadata JSON file to BGNN minnow metadata JSON file
import json
import argparse
Expand Down

0 comments on commit 70e9fe7

Please sign in to comment.