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