From a5efcc90611e51272236ef924205de3a1f48f9db Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Mon, 16 Dec 2024 19:03:38 +0530 Subject: [PATCH] Fix: Dockerfile was erroring out. --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index c6662d5..cbb0592 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 " 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