Fixed build scripts
This commit is contained in:
parent
6a110c2bbd
commit
1531c2c7b9
2 changed files with 6 additions and 4 deletions
|
|
@ -5,11 +5,13 @@ ARG BACKEND_DIR=munch-ease-backend
|
||||||
|
|
||||||
WORKDIR /code
|
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
|
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
||||||
|
|
||||||
COPY ${BACKEND_DIR} /code/app
|
RUN pip install --no-cache-dir fastapi uvicorn
|
||||||
COPY ${FRONTEND_DIR}/dist /code/app/front-dist
|
|
||||||
|
COPY "${BACKEND_DIR}" /code/app
|
||||||
|
COPY "${FRONTEND_DIR}/dist" /code/app/front-dist
|
||||||
|
|
||||||
# Set production flag
|
# Set production flag
|
||||||
ENV DOOF_PROD=1
|
ENV DOOF_PROD=1
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
(cd ./front && npm install && npm run build)
|
(cd ./munch-ease-frontend && npm install && npm run build)
|
||||||
|
|
||||||
docker build -t doof .
|
docker build -t doof .
|
||||||
Loading…
Reference in a new issue