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