Skip to content

Commit

Permalink
Merge pull request #72 from redwoodjs/dsp-comment-dockerfile
Browse files Browse the repository at this point in the history
add comments to Dockerfile
  • Loading branch information
thedavidprice committed Sep 8, 2023
1 parent 1872663 commit 0a08934
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,24 @@ FROM base as api_build
COPY --chown=node:node api api
RUN yarn redwood build api

# web prerender build
# ------------------------------------------------
# FROM api_build as web_build_with_prerender

# COPY --chown=node:node web web
# RUN yarn redwood build web

# web build
# ------------------------------------------------
FROM base as web_build

COPY --chown=node:node web web
RUN yarn redwood build web --no-prerender

# DB and data migrations
# ------------------------------------------------
# ideal place for `prisma migrate` and `@redwood/data-migrate`

# web prerender build
# ------------------------------------------------
# FROM api_build as web_build_with_prerender

# COPY --chown=node:node web web
# RUN yarn redwood build web

# serve api and fe
# ------------------------------------------------
FROM node:18-bookworm-slim as api_fe_serve
Expand Down

0 comments on commit 0a08934

Please sign in to comment.