Skip to content

Commit

Permalink
liferay-labs-br#83 Fix dockerfile and docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
kevenleone committed Mar 17, 2021
1 parent d3e552e commit 1bc39a3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
19 changes: 10 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ services:
- '3333:3333'
depends_on:
- mysql
web:
build: ./packages/frontend
container_name: liferay-grow-frontend
environment:
NEXT_PUBLIC_GITHUB_CLIENT_ID: ${CLIENT_ID}
ports:
- '3000:3000'
depends_on:
- api
web:
build: ./packages/frontend
container_name: liferay-grow-frontend
environment:
NEXT_PUBLIC_GITHUB_CLIENT_ID: ${CLIENT_ID}
NEXT_PUBLIC_BASE_URL: http://localhost:3000
ports:
- '3000:3000'
depends_on:
- api
volumes:
liferay-grow-db:
9 changes: 7 additions & 2 deletions packages/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ from node:12-alpine
WORKDIR /app

COPY ./package.json .
COPY ./public .
COPY ./src .
COPY ./public ./public
COPY ./styles ./styles
COPY ./src ./src
COPY ./next.config.js .
COPY ./tsconfig.json .
COPY ./.babelrc .
COPY ./next-env.d.ts .

RUN yarn install

Expand Down

0 comments on commit 1bc39a3

Please sign in to comment.