diff --git a/frontend/Dockerfile b/frontend/Dockerfile index db1f39f..59cb598 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -8,6 +8,9 @@ RUN pnpm install --frozen-lockfile --ignore-scripts COPY . . +ARG API_BASE +ENV API_BASE=$API_BASE + RUN pnpm exec nuxt generate FROM nginx:stable-alpine @@ -15,7 +18,4 @@ COPY --from=builder /app/.output/public /usr/share/nginx/html EXPOSE 80 -ARG API_BASE=https://api.koptilnya.xyz/test-1/ -ENV API_BASE=$API_BASE - CMD ["nginx", "-g", "daemon off;"]