Skip to content

Instantly share code, notes, and snippets.

@nashmaniac
Last active June 7, 2020 17:40
Show Gist options
  • Save nashmaniac/5dcb7a8fb6d381374224fea025049380 to your computer and use it in GitHub Desktop.
Save nashmaniac/5dcb7a8fb6d381374224fea025049380 to your computer and use it in GitHub Desktop.
# action will be run in python3 container
FROM python:3
# copying requirements.txt and install the action dependencies
COPY requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
# script.py is the file that will contain the codes that we want to run for this action.
COPY script.py /script.py
# we will just run our script.py as our docker entrypoint by python script.py
CMD ["python", "/script.py"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment