Skip to content

Commit

Permalink
Fully update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ghukill committed Sep 3, 2024
1 parent 442dd33 commit 3b4fc8b
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
FROM python:3.12-slim as build
WORKDIR /app
COPY . .
RUN cd /app && python setup.py bdist_wheel


FROM python:3.9-slim
ENV PIP_NO_CACHE_DIR yes
WORKDIR /app
RUN pip install --no-cache-dir --upgrade pip pipenv

RUN apt-get update && apt-get upgrade -y && apt-get install -y git

COPY Pipfile* /
RUN pipenv install --system --clear --deploy

COPY --from=build /app/dist/submitter-*-py3-none-any.whl .
RUN pip install submitter-*-py3-none-any.whl
RUN pipenv install

ENTRYPOINT ["submitter"]
ENTRYPOINT ["pipenv", "run", "submitter"]

0 comments on commit 3b4fc8b

Please sign in to comment.