Skip to content

Commit

Permalink
Changing Dockerfile to run validate.py directly (#19) (#20)
Browse files Browse the repository at this point in the history
* Remove start.sh

* Update Dockerfile to run validate.py
  • Loading branch information
ssciolla authored and jonespm committed Oct 31, 2019
1 parent 65bef1f commit 1c3ab37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends python3-dev xmlsec1 cron && \
apt-get clean -y

# COPY startup script into known file location in container
COPY start.sh /start.sh

WORKDIR /unizin-csv-validation/
COPY . /unizin-csv-validation/

# Sets the local timezone of the docker image
ENV TZ=America/Detroit
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

CMD ["/start.sh"]
CMD ["python", "validate.py"]

# Done!
5 changes: 0 additions & 5 deletions start.sh

This file was deleted.

0 comments on commit 1c3ab37

Please sign in to comment.