mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-15 22:02:12 +08:00
Try to get standalone node_modules in
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
**/compose*
|
**/compose*
|
||||||
**/Dockerfile*
|
**/Dockerfile*
|
||||||
**/node_modules
|
**/node_modules
|
||||||
|
!.next/standalone/node_modules
|
||||||
**/npm-debug.log
|
**/npm-debug.log
|
||||||
**/obj
|
**/obj
|
||||||
**/secrets.dev.yaml
|
**/secrets.dev.yaml
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ RUN pnpm install --frozen-lockfile --prefer-offline
|
|||||||
|
|
||||||
# Copy source
|
# Copy source
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY .next .next
|
|
||||||
|
|
||||||
ARG CI
|
ARG CI
|
||||||
ARG BUILDTIME
|
ARG BUILDTIME
|
||||||
@@ -47,7 +46,7 @@ WORKDIR /app
|
|||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
# Copy only necessary files from the build stage
|
# Copy only necessary files from the build stage
|
||||||
COPY --from=builder --chown=1000:1000 /app/.next/standalone ./
|
COPY --from=builder --chown=1000:1000 /app/.next/standalone/ ./
|
||||||
COPY --from=builder --chown=1000:1000 /app/.next/static ./.next/static
|
COPY --from=builder --chown=1000:1000 /app/.next/static ./.next/static
|
||||||
COPY --from=builder --chown=1000:1000 /app/public ./public
|
COPY --from=builder --chown=1000:1000 /app/public ./public
|
||||||
COPY --from=builder --chmod=755 /app/docker-entrypoint.sh /usr/local/bin/
|
COPY --from=builder --chmod=755 /app/docker-entrypoint.sh /usr/local/bin/
|
||||||
|
|||||||
Reference in New Issue
Block a user