Fix: run was referencing files in a subdirectory.
Fix: Playbook was not importing the default vars. Improvement: Dockerfile casheing should improve.
This commit is contained in:
@ -28,8 +28,6 @@ RUN \
|
||||
FROM python:3.12 AS runner
|
||||
LABEL maintainer="Amritanshu <docker@tanshu.com>"
|
||||
|
||||
COPY barker/pyproject.toml /app/pyproject.toml
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y locales && \
|
||||
sed --in-place --expression='s/# en_IN UTF-8/en_IN UTF-8/' /etc/locale.gen && \
|
||||
@ -46,6 +44,8 @@ RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY barker/pyproject.toml /app/pyproject.toml
|
||||
|
||||
# Allow installing dev dependencies to run tests
|
||||
ARG INSTALL_DEV=false
|
||||
RUN bash -c "if [ $INSTALL_DEV == 'true' ] ; then poetry install --no-root ; else poetry install --no-root --only main ; fi"
|
||||
|
||||
Reference in New Issue
Block a user