Chore: Updated the dockerfile to python 3.11 and also with poetry

This commit is contained in:
Amritanshu Agrawal 2023-01-31 17:51:20 +05:30
parent c99762e6a9
commit 979004d29c

View File

@ -13,7 +13,7 @@ RUN mv /node_modules /app/overlord/ \
&& /app/overlord/node_modules/.bin/ng build && /app/overlord/node_modules/.bin/ng build
FROM python:3.10 FROM python:3.11
LABEL maintainer="Amritanshu <docker@tanshu.com>" LABEL maintainer="Amritanshu <docker@tanshu.com>"
COPY pyproject.toml /app/pyproject.toml COPY pyproject.toml /app/pyproject.toml
@ -36,7 +36,7 @@ WORKDIR /app
# Allow installing dev dependencies to run tests # Allow installing dev dependencies to run tests
ARG INSTALL_DEV=false ARG INSTALL_DEV=false
RUN bash -c "if [ $INSTALL_DEV == 'true' ] ; then poetry install --no-root ; else poetry install --no-root --no-dev ; fi" RUN bash -c "if [ $INSTALL_DEV == 'true' ] ; then poetry install --no-root ; else poetry install --no-root --only main ; fi"
COPY --from=builder /app/brewman /app COPY --from=builder /app/brewman /app
COPY --from=builder /app/frontend /app/frontend COPY --from=builder /app/frontend /app/frontend