mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 01:48:32 +02:00
Fix missing base url during docker build (#180)
This commit is contained in:
parent
35159bf3a1
commit
c07885beee
2 changed files with 5 additions and 1 deletions
|
@ -11,10 +11,13 @@ COPY package.json /usr/src/app
|
||||||
COPY yarn.lock /usr/src/app
|
COPY yarn.lock /usr/src/app
|
||||||
COPY prisma/schema.prisma /usr/src/app
|
COPY prisma/schema.prisma /usr/src/app
|
||||||
|
|
||||||
RUN yarn --production
|
RUN yarn --frozen-lockfile
|
||||||
|
|
||||||
COPY . /usr/src/app
|
COPY . /usr/src/app
|
||||||
|
|
||||||
|
ARG NEXT_PUBLIC_BASE_URL
|
||||||
|
ENV NEXT_PUBLIC_BASE_URL $NEXT_PUBLIC_BASE_URL
|
||||||
|
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
|
@ -13,6 +13,7 @@ services:
|
||||||
context: .
|
context: .
|
||||||
args:
|
args:
|
||||||
- DATABASE_URL=postgres://postgres:postgres@rallly_db:5432/db?pgbouncer=true
|
- DATABASE_URL=postgres://postgres:postgres@rallly_db:5432/db?pgbouncer=true
|
||||||
|
- NEXT_PUBLIC_BASE_URL=${NEXT_PUBLIC_BASE_URL}
|
||||||
restart: always
|
restart: always
|
||||||
command: sh -c "yarn prisma migrate deploy && yarn start"
|
command: sh -c "yarn prisma migrate deploy && yarn start"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue