diff --git a/.env b/.env
index 940f00c6..5dca655e 100644
--- a/.env
+++ b/.env
@@ -1 +1 @@
-VITE_BASE_URL=http://localhost:5032
\ No newline at end of file
+VITE_API_URL=http://localhost:5032
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index 34c33b4f..34f8fe31 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,5 +21,9 @@ RUN npm run build # This will run tsc -b and vite build
# Expose the port the app will use
EXPOSE 4173
+# Copy the entrypoint script
+COPY entrypoint.sh /entrypoint.sh
+RUN chmod +x /entrypoint.sh
+
# Start the app using the preview server
CMD ["npm", "run", "preview"]
diff --git a/entrypoint.sh b/entrypoint.sh
new file mode 100644
index 00000000..cc29e5c3
--- /dev/null
+++ b/entrypoint.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Create a JavaScript file with environment variables
+echo "window._env_ = { VITE_API_URL: \"$VITE_API_URL\" };" > /app/dist/env.js
+
+# Start the Vite preview server
+exec "$@"
diff --git a/env.js b/env.js
new file mode 100644
index 00000000..e69de29b
diff --git a/index.html b/index.html
index 5988bdad..721b425b 100644
--- a/index.html
+++ b/index.html
@@ -46,7 +46,9 @@
-
+
+
+
@@ -70,12 +72,12 @@
-
+
-
+
@@ -83,7 +85,7 @@
-
+
@@ -95,24 +97,24 @@
-
+
-
-
+
+
-
+