refactor: update Dockerfile for space and web applications to correct asset paths and improve structure
This commit is contained in:
parent
91c4047afd
commit
6fd448ddac
2 changed files with 3 additions and 2 deletions
|
|
@ -56,10 +56,10 @@ WORKDIR /app
|
||||||
COPY --from=installer /app/space/next.config.js .
|
COPY --from=installer /app/space/next.config.js .
|
||||||
COPY --from=installer /app/space/package.json .
|
COPY --from=installer /app/space/package.json .
|
||||||
|
|
||||||
# Only bring in what's needed for standalone runtime
|
|
||||||
COPY --from=installer /app/space/.next/standalone ./
|
COPY --from=installer /app/space/.next/standalone ./
|
||||||
|
|
||||||
COPY --from=installer /app/space/.next/static ./.next/static
|
COPY --from=installer /app/space/.next/static ./.next/static
|
||||||
COPY --from=installer /app/space/public ./public
|
COPY --from=installer /app/space/public ./space/public
|
||||||
|
|
||||||
ARG NEXT_PUBLIC_API_BASE_URL=""
|
ARG NEXT_PUBLIC_API_BASE_URL=""
|
||||||
ENV NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_API_BASE_URL
|
ENV NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_API_BASE_URL
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,7 @@ COPY --from=installer /app/web/package.json .
|
||||||
# Automatically leverage output traces to reduce image size
|
# Automatically leverage output traces to reduce image size
|
||||||
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
||||||
COPY --from=installer /app/web/.next/standalone ./
|
COPY --from=installer /app/web/.next/standalone ./
|
||||||
|
|
||||||
COPY --from=installer /app/web/.next/static ./web/.next/static
|
COPY --from=installer /app/web/.next/static ./web/.next/static
|
||||||
COPY --from=installer /app/web/public ./web/public
|
COPY --from=installer /app/web/public ./web/public
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue