Fixed build scripts

This commit is contained in:
jableader 2024-09-21 11:10:29 +10:00
parent 6a110c2bbd
commit 1531c2c7b9
2 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -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 .