This commit is contained in:
cupcakearmy
2020-12-13 16:14:13 +01:00
parent 80c6c8e7ed
commit 59a6497240
9 changed files with 271 additions and 32 deletions

View File

@@ -1,8 +1,13 @@
# Container image that runs your code
FROM alpine:3.10
FROM python:3.9-alpine
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
WORKDIR /tmp
RUN pip install pipenv
COPY ./Pipfile* ./
RUN pipenv install --system --deploy
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]
WORKDIR /action
COPY ./src .
ENTRYPOINT [ "python" ]
CMD [ "/action/main.py" ]