tahamajs/IE / Projects /front /Dockerfile
tahamajs's picture
download
raw
751 Bytes
# ============================================================
# Serve via Nginx (Reverse Proxy & SPA Web Server)
# We already built the frontend on the host, so we just use the dist folder directly!
# ============================================================
FROM nginx:1.27-alpine AS runtime
# Install wget for container health check
RUN apk add --no-cache wget
# Route Nginx logs to Docker stdout/stderr
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
# Copy Nginx reverse proxy configuration
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Copy compiled static assets directly from host (bypassing node build)
COPY dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

Xet Storage Details

Size:
751 Bytes
·
Xet hash:
2b572e01fd43fc9cc8abeadf60cd8e1b1b3f2cc7877da77e6949b8c063e65b09

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.