Skip to content

Commit

Permalink
Environmental testing (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
jensenbox authored Jun 12, 2024
1 parent 89c3931 commit db59804
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ COPY --from=build /wheels-base/ /wheels/
RUN pip install --no-cache-dir --no-index --find-links=/wheels/ /wheels/* \
&& rm -rf /wheels/

WORKDIR /app
COPY . .
COPY entrypoint.sh /entrypoint.sh

ENV PYTHONPATH "${PYTHONPATH}:/app"

ENTRYPOINT ["python", "main.py"]
ENTRYPOINT ["/entrypoint.sh"]
23 changes: 23 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash

# Exit immediately if a command exits with a non-zero status
set -o errexit
# Ensure that ERR traps are inherited by functions, command substitutions, and subshell environments
set -o errtrace
# Treat unset variables as an error when substituting
set -o nounset
# Consider a pipeline to fail if any of the commands fail
set -o pipefail
# Print shell input lines as they are read
#set -o verbose
# Print commands and their arguments as they are executed
#set -o xtrace

echo "****** Current Directory ******"
pwd

echo "****** Listing files ******"
ls -la

echo "****** Environment Variables ******"
env

0 comments on commit db59804

Please sign in to comment.