Fix dashboard-v2 Dockerfile context (#2051)
This commit is contained in:
parent
05e1ae18cc
commit
82cc22f367
|
@ -0,0 +1,2 @@
|
||||||
|
- Fix `dashboard-v2` Dockerfile context in `docker-compose.accounts.yml` to
|
||||||
|
avoid Ansible deploy (docker compose build) `permission denied` issues.
|
|
@ -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
|
||||||
|
|
|
@ -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"]
|
||||||
|
|
Reference in New Issue