From a47d6e5524c6328f6092d59fc3c9d036558ab39c Mon Sep 17 00:00:00 2001 From: NERVEbing Date: Mon, 4 Jul 2022 01:09:39 +0800 Subject: [PATCH 1/2] feat: add Dockerfile --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..eadf734 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM python:3.9-alpine + +WORKDIR /src + +COPY . ./ + +RUN pip install pipenv && pipenv install --deploy --ignore-pipfile + +ENTRYPOINT ["pipenv", "run", "python", "smsboom.py"] \ No newline at end of file From b4321c86fa2f2da8b81000b4ed4397ef66336bef Mon Sep 17 00:00:00 2001 From: NERVEbing Date: Mon, 4 Jul 2022 01:11:33 +0800 Subject: [PATCH 2/2] fix: add new line at end of Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index eadf734..5fbb357 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,4 +6,4 @@ COPY . ./ RUN pip install pipenv && pipenv install --deploy --ignore-pipfile -ENTRYPOINT ["pipenv", "run", "python", "smsboom.py"] \ No newline at end of file +ENTRYPOINT ["pipenv", "run", "python", "smsboom.py"]