Skip to content

Commit

Permalink
#900 add dockerfile template
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Nov 16, 2020
1 parent 8d5be1d commit 944ce9f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions utils/docker/Dockerfile_template
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## To test an Analyzer of Responder with docker:
#
# Copy this file in the folder of an analyzer or a responder and name it Dockerfile
## edit it and Change variables
#
# - {workername} by the folder name of the analyzer or responder
# - {command} by the value of the `command` in a JSON file
#
# Save and run:
#
# docker build -t cortexneurons/{flavor_name}:devel with {flavor_name} the name of the analyzer of responder in the JSON file
#
#



FROM python:3
WORKDIR /worker
COPY . {worker_name}
RUN test ! -e {worker_name}/requirements.txt || pip install --no-cache-dir -r{worker_name}/requirements.txt
ENTRYPOINT {command}

0 comments on commit 944ce9f

Please sign in to comment.