@@ -2,38 +2,16 @@ ARG PYTHON_VERSION=3.12
22
33FROM alpine/git as clone
44
5- ARG GIT_REPO="Repo name "
5+ ARG GIT_REPO="TempProgram "
66ARG GIT_OWNER=PythonCoderAS
77ARG GIT_CLONE_URL="https://github.com/${GIT_OWNER}/${GIT_REPO}.git"
88ARG GIT_BRANCH=master
99
1010RUN git clone --depth 1 --branch ${GIT_BRANCH} ${GIT_CLONE_URL} /app
1111RUN rm -rf /app/.git
1212
13- FROM python:${PYTHON_VERSION} as generate-requirements
14-
15- # Path: /app
16- COPY --from=clone /app /app
17- WORKDIR /app
18-
19- RUN ["pip" , "install" , "pipenv" ]
20- RUN ["sh" , "-c" , "pipenv requirements --dev > requirements.txt" ]
21- RUN ["rm" , "Pipfile" , "Pipfile.lock" ]
22-
23- FROM python:${PYTHON_VERSION} as build
24-
25- # Path: /app
26- WORKDIR /app
27-
28- COPY --from=generate-requirements /app/requirements.txt ./
29-
30- RUN ["python3" , "-m" , "venv" , "/venv" ]
31- ENV PATH="/venv/bin:$PATH"
32- RUN ["python3" , "-m" , "pip" , "install" , "-r" , "requirements.txt" ]
33-
34- FROM python:${PYTHON_VERSION}-slim as final
35- COPY --from=build /venv /venv
13+ FROM python:${PYTHON_VERSION}-alpine as final
3614COPY --from=clone /app /app
3715WORKDIR /app
38- ENV PATH= "/venv/bin:$PATH"
39- ENTRYPOINT [ "python3" , "/app/bot .py" ]
16+ RUN apk add --no-cache gcc libc-dev bash zsh openjdk8-jdk
17+ ENTRYPOINT [ "python3" , "/app/main .py" ]
0 commit comments