Skip to content

Commit

Permalink
build: remove debug RUNs and alter CMD as recommended by GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
Borketh committed Oct 31, 2024
1 parent eb26a11 commit 7cd04e7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ FROM alpine AS build
WORKDIR /deps

#RUN pip --no-cache-dir install --progress-bar=off "poetry==1.8"
RUN apk update
RUN apk add --no-cache g++ git re2-dev poetry python3-dev
RUN apk update; apk add --no-cache g++ git re2-dev poetry python3-dev

COPY pyproject.toml poetry.lock poetry.toml ./
RUN python -VV
RUN poetry env use $(which python)
RUN poetry install -nvvv --no-root --compile --only main

COPY fred ./fred/
RUN poetry install -nvvv --only-root --compile

Expand All @@ -31,5 +31,5 @@ FROM runtime
COPY --from=build /deps/.venv ./venv
COPY fred ./fred/
COPY *.env .
RUN pwd
CMD ./venv/bin/python -m fred

CMD ["./venv/bin/python", "-m", "fred"]

0 comments on commit 7cd04e7

Please sign in to comment.