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: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
|
# https://forgejo.org/docs/next/user/actions/reference/#env-1
|
||||||
tags: ${{ vars.REGISTRY_DOMAIN }}/${{ env.FORGEJO_REPOSITORY }}:app
|
tags: ${{ vars.REGISTRY_DOMAIN }}/${{ env.FORGEJO_REPOSITORY }}:app
|
||||||
file: Dockerfile
|
file: Dockerfile
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,19 +20,16 @@ WORKDIR /app
|
||||||
|
|
||||||
# NOTE: Frontend setup
|
# NOTE: Frontend setup
|
||||||
WORKDIR /app/frontend
|
WORKDIR /app/frontend
|
||||||
|
RUN npm i
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# NOTE: Backend setup
|
# NOTE: Backend setup
|
||||||
WORKDIR /app/api
|
WORKDIR /app/api
|
||||||
|
|
||||||
RUN <<EOF
|
RUN <<EOF
|
||||||
bash ./run.bash
|
bash ./run.bash
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
ENV PATH="/app/api/venv/bin:$PATH"
|
ENV PATH="/app/api/venv/bin:$PATH"
|
||||||
|
|
||||||
#SHELL ["bash", "-c"]
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN "bash run.bash"
|
RUN "bash run.bash"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue