mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-15 13:52:09 +08:00
Add back --link flags
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -6,7 +6,7 @@ WORKDIR /app
|
|||||||
|
|
||||||
# Setup
|
# Setup
|
||||||
RUN mkdir config
|
RUN mkdir config
|
||||||
COPY package.json pnpm-lock.yaml ./
|
COPY --link package.json pnpm-lock.yaml ./
|
||||||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||||
RUN pnpm install --frozen-lockfile --prefer-offline
|
RUN pnpm install --frozen-lockfile --prefer-offline
|
||||||
|
|
||||||
@@ -46,10 +46,10 @@ 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 --link --from=builder --chown=1000:1000 /app/.next/standalone/ ./
|
||||||
COPY --from=builder --chown=1000:1000 /app/.next/static ./.next/static
|
COPY --link --from=builder --chown=1000:1000 /app/.next/static ./.next/static
|
||||||
COPY --from=builder --chown=1000:1000 /app/public ./public
|
COPY --link --from=builder --chown=1000:1000 /app/public ./public
|
||||||
COPY --from=builder --chmod=755 /app/docker-entrypoint.sh /usr/local/bin/
|
COPY --link --from=builder --chmod=755 /app/docker-entrypoint.sh /usr/local/bin/
|
||||||
|
|
||||||
RUN apk add --no-cache su-exec
|
RUN apk add --no-cache su-exec
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user