From a643af5bd0062df637744b0d4a6cac57ce63c48d Mon Sep 17 00:00:00 2001 From: eliseius Date: Fri, 13 Oct 2023 00:10:13 +0300 Subject: [PATCH 1/4] Create file dockerfile.txt' --- DockerFile.txt | 11 +++++++++++ requirements.txt | 1 - utils.py | 2 -- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 DockerFile.txt delete mode 100644 requirements.txt diff --git a/DockerFile.txt b/DockerFile.txt new file mode 100644 index 0000000..28f826c --- /dev/null +++ b/DockerFile.txt @@ -0,0 +1,11 @@ +FROM python: 3.8-alpine + +WORKDIR . /app + +RUN apk update && apk add --no-cach --virtual bash git gcc g++ + +RUN python -m pip install --upgrade pip + +COPY . /app + +CMD ['python', 'game.py'] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 65093fc..0000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -pathlib==1.0.1 diff --git a/utils.py b/utils.py index 5a0e369..5ab0a3c 100644 --- a/utils.py +++ b/utils.py @@ -1,8 +1,6 @@ import json import random -from pathlib import Path - from create_dict import get_file_path from settings import NUMB_LETTERS_IN_WORD From 5cc021b6885477254c83bb401cccae579cab8956 Mon Sep 17 00:00:00 2001 From: eliseius Date: Fri, 13 Oct 2023 00:50:28 +0300 Subject: [PATCH 2/4] Create image --- DockerFile.txt => Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename DockerFile.txt => Dockerfile (86%) diff --git a/DockerFile.txt b/Dockerfile similarity index 86% rename from DockerFile.txt rename to Dockerfile index 28f826c..1bb3e6d 100644 --- a/DockerFile.txt +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python: 3.8-alpine +FROM python:3.8-alpine WORKDIR . /app From 795a7c95906b71be3f0d10fc8dd2cac3fc36b38e Mon Sep 17 00:00:00 2001 From: eliseius Date: Fri, 13 Oct 2023 01:13:13 +0300 Subject: [PATCH 3/4] Corrected --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1bb3e6d..4a71bae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ FROM python:3.8-alpine -WORKDIR . /app +WORKDIR /app/ RUN apk update && apk add --no-cach --virtual bash git gcc g++ RUN python -m pip install --upgrade pip -COPY . /app +COPY . /app/ -CMD ['python', 'game.py'] \ No newline at end of file +CMD ["python", "game.py"] \ No newline at end of file From 3a54e6aa734228e70ef6aa859cea367398ca750c Mon Sep 17 00:00:00 2001 From: eliseius Date: Sat, 13 Apr 2024 16:07:10 +0300 Subject: [PATCH 4/4] Add requirements --- requirements.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..65093fc --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pathlib==1.0.1