Skip to content

Commit eade3a6

Browse files
Update Dockerfile
1 parent 8b008e6 commit eade3a6

File tree

1 file changed

+4
-26
lines changed

1 file changed

+4
-26
lines changed

Dockerfile

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,16 @@ ARG PYTHON_VERSION=3.12
22

33
FROM alpine/git as clone
44

5-
ARG GIT_REPO="Repo name"
5+
ARG GIT_REPO="TempProgram"
66
ARG GIT_OWNER=PythonCoderAS
77
ARG GIT_CLONE_URL="https://github.com/${GIT_OWNER}/${GIT_REPO}.git"
88
ARG GIT_BRANCH=master
99

1010
RUN git clone --depth 1 --branch ${GIT_BRANCH} ${GIT_CLONE_URL} /app
1111
RUN 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
3614
COPY --from=clone /app /app
3715
WORKDIR /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

Comments
 (0)