Fix dashboard-v2 Dockerfile context (#2051)

This commit is contained in:
firyx 2022-04-26 16:39:35 +02:00 committed by GitHub
parent 05e1ae18cc
commit 82cc22f367
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 9 deletions

View File

@ -0,0 +1,2 @@
- Fix `dashboard-v2` Dockerfile context in `docker-compose.accounts.yml` to
avoid Ansible deploy (docker compose build) `permission denied` issues.

View File

@ -80,8 +80,8 @@ services:
dashboard-v2:
build:
context: .
dockerfile: packages/dashboard-v2/Dockerfile
context: ./packages/dashboard-v2
dockerfile: Dockerfile
container_name: dashboard-v2
restart: unless-stopped
logging: *default-logging

View File

@ -2,17 +2,17 @@ FROM node:16.14.2-alpine
WORKDIR /usr/app
COPY packages/dashboard-v2/package.json \
packages/dashboard-v2/yarn.lock \
COPY package.json \
yarn.lock \
./
RUN yarn --frozen-lockfile
COPY packages/dashboard-v2/static ./static
COPY packages/dashboard-v2/src ./src
COPY packages/dashboard-v2/gatsby*.js \
packages/dashboard-v2/postcss.config.js \
packages/dashboard-v2/tailwind.config.js \
COPY static ./static
COPY src ./src
COPY gatsby*.js \
postcss.config.js \
tailwind.config.js \
./
CMD ["sh", "-c", "yarn build && yarn serve --host 0.0.0.0 -p 9000"]