Skip to content

Commit

Permalink
Add comments and prefer long CLI options
Browse files Browse the repository at this point in the history
  • Loading branch information
jsf9k committed Nov 4, 2022
1 parent 4a41b91 commit 0afd230
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,24 @@ RUN pip install --no-cache-dir --upgrade pip setuptools

WORKDIR ${CISA_HOME}

RUN wget -O sourcecode.tgz https://github.com/cisagov/skeleton-python-library/archive/v${VERSION}.tar.gz && \
tar xzf sourcecode.tgz --strip-components=1 && \
pip install --requirement requirements.txt && \
ln -snf /run/secrets/quote.txt src/example/data/secret.txt && \
rm sourcecode.tgz
###
# Install Python dependencies
#
# Note that we use pip --no-cache-dir to avoid writing to a local
# cache. This results in a smaller final image, at the cost of
# slightly longer install times.
###
RUN wget --output-document sourcecode.tgz \
https://github.com/cisagov/skeleton-python-library/archive/v${VERSION}.tar.gz && \
tar --extract --gzip --file sourcecode.tgz --strip-components=1 && \
pip install --no-cache-dir --requirement requirements.txt && \
ln --symbolic --no-dereference --force /run/secrets/quote.txt src/example/data/secret.txt && \
rm sourcecode.tgz

###
# Prepare to run
###
USER cisa

EXPOSE 8080/TCP
VOLUME ["/var/log"]
ENTRYPOINT ["example"]
Expand Down

0 comments on commit 0afd230

Please sign in to comment.