Fix: Dockerfile was erroring out.

This commit is contained in:
Amritanshu Agrawal 2024-12-16 19:03:38 +05:30
parent 7e70214c94
commit a5efcc9061

View File

@ -16,7 +16,7 @@ RUN \
FROM base as builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY bookie/* .
COPY /bookie ./
RUN \
if [ -f yarn.lock ]; then yarn run build; \
@ -25,8 +25,7 @@ RUN \
else echo "Lockfile not found." && exit 1; \
fi
FROM python:3.12
FROM python:3.12 AS runner
LABEL maintainer="Amritanshu <docker@tanshu.com>"
COPY barker/pyproject.toml /app/pyproject.toml
@ -51,8 +50,8 @@ WORKDIR /app
ARG INSTALL_DEV=false
RUN bash -c "if [ $INSTALL_DEV == 'true' ] ; then poetry install --no-root ; else poetry install --no-root --only main ; fi"
COPY /barker/* /app
COPY --from=builder /app/frontend/browser /app/frontend
COPY /barker ./
COPY --from=builder /frontend/browser /app/frontend
ENV PYTHONPATH=/app
EXPOSE 80