Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
chore: update docker configs
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquecarv committed Jun 11, 2020
1 parent 883e715 commit 545a45c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ COPY yarn.lock ./

RUN yarn install --frozen-lockfile

COPY client ./client/
COPY helpers ./helpers/
COPY pages ./pages/
COPY public ./public/
COPY server ./server/
COPY client ./client
COPY helpers ./helpers
COPY pages ./pages
COPY public ./public
COPY server ./server

COPY ./tsconfig*.json ./
COPY ./.babelrc ./
Expand Down Expand Up @@ -44,7 +44,8 @@ RUN yarn install --prod --frozen-lockfile

COPY --from=build /app/dist ./dist
COPY --from=build /app/.next ./.next
COPY --from=build /app/public ./public
COPY public ./public
COPY server/config/next.config.js ./dist/server/config/next.config.js

COPY entrypoint.sh ./
RUN chmod +x ./entrypoint.sh
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3"
version: '3'

services:
bundle_app:
Expand All @@ -7,6 +7,8 @@ services:
container_name: bundle_app
restart: unless-stopped
env_file: ./.env
environment:
NEXT_CONFIG_PATH: dist/server/config/next.config.js
ports:
- ${PORT}:${PORT}
expose:
Expand Down

0 comments on commit 545a45c

Please sign in to comment.