From e5af3b8c5163cca6ccf6cab189ee0a79fa8251fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Henrique?= Date: Sun, 16 Feb 2025 11:18:22 -0300 Subject: [PATCH] feat: add environment variables for Firebase configuration in Dockerfile --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dockerfile b/Dockerfile index a99ff75..797bd59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,4 +11,14 @@ FROM nginx:alpine COPY --from=builder /app/dist /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 + +ENV VITE_API_BASE_URL=https://api.example.com +ENV VITE_FIREBASE_API_KEY=firebase-api +ENV VITE_FIREBASE_AUTH_DOMAIN=firebase-auth +ENV VITE_FIREBASE_PROJECT_ID=firebase-project +ENV VITE_FIREBASE_STORAGE_BUCKET=firebase-storage +ENV VITE_FIREBASE_MESSAGING_SENDER_ID=firebase-messaging +ENV VITE_FIREBASE_APP_ID=firebase-app +ENV VITE_FIREBASE_MEASUREMENT_ID=firebase-measurement + CMD ["nginx", "-g", "daemon off;"]