Fix: Dockerfile was erroring out.
This commit is contained in:
parent
7e70214c94
commit
a5efcc9061
@ -16,7 +16,7 @@ RUN \
|
|||||||
FROM base as builder
|
FROM base as builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
COPY bookie/* .
|
COPY /bookie ./
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
if [ -f yarn.lock ]; then yarn run build; \
|
if [ -f yarn.lock ]; then yarn run build; \
|
||||||
@ -25,8 +25,7 @@ RUN \
|
|||||||
else echo "Lockfile not found." && exit 1; \
|
else echo "Lockfile not found." && exit 1; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
FROM python:3.12 AS runner
|
||||||
FROM python:3.12
|
|
||||||
LABEL maintainer="Amritanshu <docker@tanshu.com>"
|
LABEL maintainer="Amritanshu <docker@tanshu.com>"
|
||||||
|
|
||||||
COPY barker/pyproject.toml /app/pyproject.toml
|
COPY barker/pyproject.toml /app/pyproject.toml
|
||||||
@ -51,8 +50,8 @@ WORKDIR /app
|
|||||||
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 --only main ; fi"
|
RUN bash -c "if [ $INSTALL_DEV == 'true' ] ; then poetry install --no-root ; else poetry install --no-root --only main ; fi"
|
||||||
|
|
||||||
COPY /barker/* /app
|
COPY /barker ./
|
||||||
COPY --from=builder /app/frontend/browser /app/frontend
|
COPY --from=builder /frontend/browser /app/frontend
|
||||||
|
|
||||||
ENV PYTHONPATH=/app
|
ENV PYTHONPATH=/app
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
Loading…
Reference in New Issue
Block a user