|
|
@ -1,7 +1,7 @@
|
|
|
|
# syntax = docker/dockerfile:latest
|
|
|
|
# syntax = docker/dockerfile:latest
|
|
|
|
|
|
|
|
|
|
|
|
# Install dependencies only when needed
|
|
|
|
# Install dependencies only when needed
|
|
|
|
FROM docker.io/node:20-alpine AS deps
|
|
|
|
FROM docker.io/node:22-alpine AS deps
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
@ -17,7 +17,7 @@ RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store pnpm f
|
|
|
|
RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store pnpm install -r --offline
|
|
|
|
RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store pnpm install -r --offline
|
|
|
|
|
|
|
|
|
|
|
|
# Rebuild the source code only when needed
|
|
|
|
# Rebuild the source code only when needed
|
|
|
|
FROM docker.io/node:20-alpine AS builder
|
|
|
|
FROM docker.io/node:22-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
ARG BUILDTIME
|
|
|
|
ARG BUILDTIME
|
|
|
@ -33,7 +33,7 @@ RUN npm run telemetry \
|
|
|
|
&& NEXT_PUBLIC_BUILDTIME=$BUILDTIME NEXT_PUBLIC_VERSION=$VERSION NEXT_PUBLIC_REVISION=$REVISION npm run build
|
|
|
|
&& NEXT_PUBLIC_BUILDTIME=$BUILDTIME NEXT_PUBLIC_VERSION=$VERSION NEXT_PUBLIC_REVISION=$REVISION npm run build
|
|
|
|
|
|
|
|
|
|
|
|
# Production image, copy all the files and run next
|
|
|
|
# Production image, copy all the files and run next
|
|
|
|
FROM docker.io/node:20-alpine AS runner
|
|
|
|
FROM docker.io/node:22-alpine AS runner
|
|
|
|
LABEL org.opencontainers.image.title "Homepage"
|
|
|
|
LABEL org.opencontainers.image.title "Homepage"
|
|
|
|
LABEL org.opencontainers.image.description "A self-hosted services landing page, with docker and service integrations."
|
|
|
|
LABEL org.opencontainers.image.description "A self-hosted services landing page, with docker and service integrations."
|
|
|
|
LABEL org.opencontainers.image.url="https://github.com/gethomepage/homepage"
|
|
|
|
LABEL org.opencontainers.image.url="https://github.com/gethomepage/homepage"
|
|
|
|