Use fully qualified image name in frontend Dockerfile
This commit is contained in:
parent
8f6d55ee73
commit
4a60bf5b94
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
# Multi-stage build for Next.js frontend
|
# Multi-stage build for Next.js frontend
|
||||||
FROM node:20-alpine AS builder
|
FROM docker.io/node:20-alpine AS builder
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
@ -17,7 +17,7 @@ COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Production stage
|
# Production stage
|
||||||
FROM node:20-alpine AS runner
|
FROM docker.io/node:20-alpine AS runner
|
||||||
|
|
||||||
# Create non-root user
|
# Create non-root user
|
||||||
RUN addgroup --system --gid 1001 nodejs
|
RUN addgroup --system --gid 1001 nodejs
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue