build(Dockerfile): forgot to add npm i to Dockerfile
This commit is contained in:
parent
bb49d834b3
commit
772e364d44
2 changed files with 2 additions and 4 deletions
|
|
@ -34,6 +34,7 @@ jobs:
|
|||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
# https://forgejo.org/docs/next/user/actions/reference/#env-1
|
||||
tags: ${{ vars.REGISTRY_DOMAIN }}/${{ env.FORGEJO_REPOSITORY }}:app
|
||||
file: Dockerfile
|
||||
|
||||
|
|
|
|||
|
|
@ -20,19 +20,16 @@ WORKDIR /app
|
|||
|
||||
# NOTE: Frontend setup
|
||||
WORKDIR /app/frontend
|
||||
RUN npm i
|
||||
RUN npm run build
|
||||
|
||||
# NOTE: Backend setup
|
||||
WORKDIR /app/api
|
||||
|
||||
RUN <<EOF
|
||||
bash ./run.bash
|
||||
EOF
|
||||
|
||||
ENV PATH="/app/api/venv/bin:$PATH"
|
||||
|
||||
#SHELL ["bash", "-c"]
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN "bash run.bash"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue