test envsubst
This commit is contained in:
@@ -5,6 +5,7 @@ RUN npm ci
|
||||
COPY . ./
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
FROM nginx
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY nginx.conf.template /etc/nginx/conf.d/default.conf.template
|
||||
RUN echo "envsubst '$ESI_USER_AGENT' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf && cat /etc/nginx/conf.d/default.conf" > /docker-entrypoint.d/40-envsubst.sh & chmod +x /docker-entrypoint.d/40-envsubst.sh
|
||||
|
||||
Reference in New Issue
Block a user