mirror of
https://github.com/UiO-Gaming/uiogaming.no.git
synced 2026-11-05 13:56:47 +01:00
- Node 20 is end-of-life; use the current LTS in the Docker image - Major updates: @sanity/client 8, @sanity/image-url 2, @portabletext/react 8, eslint-config-next 16 - Unpin React and update to 19.3 - ESLint stays on 9 and TypeScript on 6.0, since eslint-config-next's plugins and typescript-eslint don't support newer majors yet - Use the native flat config from eslint-config-next 16 - Use useSyncExternalStore for WebGL detection to satisfy the new react-hooks lint rule Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
411 B
Docker
23 lines
411 B
Docker
FROM node:26-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json ./
|
|
COPY package-lock.json ./
|
|
RUN npm install
|
|
|
|
COPY . .
|
|
|
|
# NEXT_PUBLIC_* values are inlined at build time, and pages are prerendered
|
|
# with data from Sanity during the build
|
|
ARG NEXT_PUBLIC_SANITY_PROJECT_ID
|
|
ARG NEXT_PUBLIC_SANITY_DATASET
|
|
ARG NEXT_PUBLIC_UMAMI_SRC
|
|
ARG NEXT_PUBLIC_UMAMI_WEBSITE_ID
|
|
|
|
RUN npm run build
|
|
|
|
EXPOSE 9000
|
|
|
|
CMD ["npm", "run", "start"]
|