Compare commits
12 Commits
security/a
...
fix/docker
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd076d5efe | ||
|
|
0757855451 | ||
|
|
d65244f94d | ||
|
|
290b72660c | ||
|
|
2dad48d223 | ||
|
|
5125a735e5 | ||
|
|
aba9f972a8 | ||
|
|
b90defa872 | ||
|
|
8d5bd61474 | ||
|
|
eeedc77a0f | ||
|
|
4f152e1224 | ||
|
|
4d48bf140d |
@@ -53,8 +53,14 @@ RUN --mount=type=cache,id=pnpm,target=~/.pnpm-store pnpm install --frozen-lockfi
|
|||||||
# Copy source code of isolated subworkspace
|
# Copy source code of isolated subworkspace
|
||||||
COPY --from=pruner /app/out/full/ .
|
COPY --from=pruner /app/out/full/ .
|
||||||
|
|
||||||
|
|
||||||
RUN pnpm build --filter=${PROJECT}
|
RUN pnpm build --filter=${PROJECT}
|
||||||
|
|
||||||
|
# Copy static files to standalone directory
|
||||||
|
RUN mkdir -p apps/web/.next/standalone/.next && \
|
||||||
|
mv apps/web/public apps/web/.next/standalone/ && \
|
||||||
|
mv apps/web/.next/static apps/web/.next/standalone/.next/
|
||||||
|
|
||||||
# 4. Final image - runner stage to run the application
|
# 4. Final image - runner stage to run the application
|
||||||
FROM base AS runner
|
FROM base AS runner
|
||||||
ARG APP_DIRNAME
|
ARG APP_DIRNAME
|
||||||
@@ -75,5 +81,5 @@ ARG PORT=3000
|
|||||||
ENV PORT=${PORT}
|
ENV PORT=${PORT}
|
||||||
EXPOSE ${PORT}
|
EXPOSE ${PORT}
|
||||||
|
|
||||||
CMD ["./entrypoint.sh"]
|
CMD ["/bin/sh", "./entrypoint.sh"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user