From 1531c2c7b94d0f76d6c2bc056c18fedbaf824794 Mon Sep 17 00:00:00 2001 From: jableader Date: Sat, 21 Sep 2024 11:10:29 +1000 Subject: [PATCH] Fixed build scripts --- Dockerfile | 8 +++++--- build-local.sh | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4bc71b9..7b62c35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,11 +5,13 @@ ARG BACKEND_DIR=munch-ease-backend WORKDIR /code -COPY ${BACKEND_DIR}/requirements.txt /code/requirements.txt +COPY "${BACKEND_DIR}/requirements.txt" /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt -COPY ${BACKEND_DIR} /code/app -COPY ${FRONTEND_DIR}/dist /code/app/front-dist +RUN pip install --no-cache-dir fastapi uvicorn + +COPY "${BACKEND_DIR}" /code/app +COPY "${FRONTEND_DIR}/dist" /code/app/front-dist # Set production flag ENV DOOF_PROD=1 diff --git a/build-local.sh b/build-local.sh index c8c8d9d..5c418e0 100755 --- a/build-local.sh +++ b/build-local.sh @@ -1,5 +1,5 @@ #!/bin/bash -(cd ./front && npm install && npm run build) +(cd ./munch-ease-frontend && npm install && npm run build) docker build -t doof . \ No newline at end of file