Skip to content

Commit 21b6e61

Browse files
small docker using reorganization
1 parent 8908cce commit 21b6e61

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.github
2+
.git
3+
forgejo
4+
Industrial_Nikolaev_AA_9381
5+
reports

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
FROM python:3.10-slim
1+
FROM python:3.12-slim
22

3+
ENV GIT_PYTHON_GIT_EXECUTABLE=/usr/bin/git
34
WORKDIR /app
45

56
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
67

7-
COPY . /app
8-
8+
COPY requirements.txt .
99
RUN pip install --no-cache-dir -r requirements.txt
1010

11-
ENV GIT_PYTHON_GIT_EXECUTABLE=/usr/bin/git
11+
COPY . /app
1212

1313
ENTRYPOINT ["python", "main.py"]

0 commit comments

Comments
 (0)