Skip to content

Commit

Permalink
update dockerfile to pull down a specific release
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Smith committed Feb 9, 2021
1 parent a97a6bd commit 7a6068b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
14 changes: 11 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
FROM tiangolo/meinheld-gunicorn-flask:python3.7

ENV VERSION=1.0
ENV TARBALL=v${VERSION}.tar.gz
ENV RELEASE=tomsmith-demo-python-${VERSION}

WORKDIR /tmp

RUN git clone git://github.com/castle/castle-demo-python
ADD https://github.com/castle/tomsmith-demo-python/archive/${TARBALL} ${TARBALL}

RUN tar -xzf ${TARBALL}

RUN rm ${TARBALL}

WORKDIR /tmp/castle-demo-python
RUN rm -r /app

RUN mv * /app
RUN mv ${RELEASE} /app

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Run the app:
`flask run`
* Running on http://127.0.0.1:5000/

Note - the app also support gunicorn:
Note - the app also supports gunicorn:

`gunicorn app:app`

Expand Down
4 changes: 2 additions & 2 deletions templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
<table border = 0 style="table-layout: fixed; vertical-align: top;">
<tr>
<td style="font-weight: bold">
castle api endpoint: <span id="castle_api_endpoint"></span>
castle api endpoint: <span id="castle_api_endpoint" style="font-weight: normal;"></span>
<br>
event: <span id="castle_event"></span>
event: <span id="castle_event" style="font-weight: normal;"></span>
</td>
<td id = "verdict_header" style="font-weight: bold; display: none">response from castle</td>
</tr>
Expand Down

0 comments on commit 7a6068b

Please sign in to comment.