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:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: packages/dashboard-v2/Dockerfile
|
||||
context: ./packages/dashboard-v2
|
||||
dockerfile: Dockerfile
|
||||
container_name: dashboard-v2
|
||||
restart: unless-stopped
|
||||
logging: *default-logging
|
||||
|
|
|
@ -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"]
|
||||
|
|
Reference in New Issue