diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..f2a0d14
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,17 @@
+FROM node:lts-alpine AS build-stage
+
+WORKDIR /app
+
+COPY package*.json ./
+
+RUN npm ci
+COPY . .
+RUN n
+RUN npx nuxt build
+
+FROM node:lts-alpine AS production-stage
+WORKDIR /app
+COPY --from=build-stage /app/.output/ /app
+COPY --from=build-stage /app/node_modules/ /app/node_modules
+EXPOSE 3000
+CMD ["node", "server/index.mjs"]
\ No newline at end of file
diff --git a/components/MainPoll.vue b/components/MainPoll.vue
index 3070dac..40d4f12 100644
--- a/components/MainPoll.vue
+++ b/components/MainPoll.vue
@@ -21,7 +21,7 @@
réaliser la distribution des œufs,
- être Référent d’un produit.
+ être Référent d’un resultsproduit.
être Référent du local de distribution (si officiellement créé), Référent Impression,
@@ -35,7 +35,8 @@
-
+
diff --git a/components/QuestionResult.vue b/components/QuestionResult.vue
index a255108..4dec1df 100644
--- a/components/QuestionResult.vue
+++ b/components/QuestionResult.vue
@@ -1,7 +1,7 @@
+ :style="{ width: (total ? `${(amount / total) * 100}%` : '100%'), background: colors[values.indexOf(String(val))] }">
({{ amount }}){{ val }}
@@ -40,7 +40,7 @@ const filtered_results = computed(() => {
})
-const total = computed(() => Object.values(filtered_results.value).reduce((acc, v) => v + acc, 0) ?? 1)
+const total = computed(() => (Object.values(filtered_results.value).reduce((acc, v) => v + acc, 0) || 0))
diff --git a/nuxt.config.ts b/nuxt.config.ts
index 42404d3..19f4116 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -7,5 +7,10 @@ export default defineNuxtConfig({
public: {
apiBase: '/api'
}
+ },
+ nitro:{
+ prerender:{
+ ignore:["/poll"]
+ }
}
})
\ No newline at end of file