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: dashboard-v2:
build: build:
context: . context: ./packages/dashboard-v2
dockerfile: packages/dashboard-v2/Dockerfile dockerfile: Dockerfile
container_name: dashboard-v2 container_name: dashboard-v2
restart: unless-stopped restart: unless-stopped
logging: *default-logging logging: *default-logging

View File

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