TV
Size: a a a
TV
SS
TV
TV
СА
FROM: nginx:mainline-alpine
я осилил, и даже в CI оформил, а как его заставить понимать env-переменные и брать оттуда например адрес бэкенда, если он не относительный?AA
MS
# We stored static template strings like __API_URL__, so that we can speedup build process by using cache.
# We need to replace them with actual values at runtime.
find /dist/ -name "*.js" -type f -print0 | xargs -0 sed -i "s|__API_URL__|${API_URL}|g"
find /dist/ -name "*.js" -type f -print0 | xargs -0 sed -i "s|__FRONTEND_SENTRY_DSN__|${FRONTEND_SENTRY_DSN}|g"
find /dist/ -name "*.js" -type f -print0 | xargs -0 sed -i "s|__VERSION__|${VERSION}|g"
echo ${VERSION} > /dist/version
nginx -g "daemon off;"
MS
MS
AA
СА
MS
С
MS
С
MS
С
СА
СА