Add Drone CI pipeline and static-only nginx serving for dev deploy
This commit is contained in:
@@ -41,6 +41,14 @@ RUN sh -c "ng build --output-path=/dist $BUILD_ENVIRONMENT_OPTIONS"
|
||||
###############
|
||||
FROM $NGINX_IMAGE
|
||||
|
||||
# envsubst (gettext) alpine-slim me nahi hota — runtime env.js generation ke
|
||||
# liye zaroori hai, isliye explicitly install kar rahe hain.
|
||||
RUN apk add --no-cache gettext
|
||||
|
||||
# Static-only nginx config (SPA fallback, no API proxy). Stock default.conf
|
||||
# ko replace karta hai taaki deep-link refresh par 404 na aaye.
|
||||
COPY nginx.spa.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
COPY --from=builder /dist/browser /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user