re4stonepuzzle / Dockerfile
Scribbler310
Fix HF Space metadata colors and update port to 8080
f9bfc87
Raw
History Blame Contribute Delete
411 Bytes
# Stage 1: Build stage
FROM node:20-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Stage 2: Serve stage
FROM nginx:stable-alpine
# Configure nginx to run on port 8080 for Hugging Face Space compatibility
RUN sed -i 's/80;/8080;/g' /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]