mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-11 21:12:09 +10:00
run yarn install in CI/CD non interactively
This commit is contained in:
@ -7,7 +7,7 @@ WORKDIR /build
|
|||||||
|
|
||||||
# install dependencies and build
|
# install dependencies and build
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN yarn install
|
RUN yarn install --non-interactive
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
# create run environment for Drop
|
# create run environment for Drop
|
||||||
|
|||||||
@ -1,9 +1,14 @@
|
|||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:14-alpine
|
image: postgres:14-alpine
|
||||||
user: "1000:1000"
|
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready", "-d", "postgres"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 60s
|
||||||
|
retries: 5
|
||||||
|
start_period: 10s
|
||||||
volumes:
|
volumes:
|
||||||
- ./db:/var/lib/postgresql/data
|
- ./db:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
@ -12,7 +17,9 @@ services:
|
|||||||
- POSTGRES_DB=drop
|
- POSTGRES_DB=drop
|
||||||
drop:
|
drop:
|
||||||
image: drop # todo
|
image: drop # todo
|
||||||
user: "1000:1000"
|
depends_on:
|
||||||
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user