Desktop app dynamic config of API Port (#40)

* added dynamic configuration of Port in Desktop app
* added dynamic configuration of API_URL to docker deployments.

Now it works with editing only .env file.
This commit is contained in:
Bardioc26
2026-02-27 11:55:30 +01:00
committed by GitHub
parent bb9ef4f77e
commit 261a6294cb
24 changed files with 597 additions and 55 deletions
+6 -2
View File
@@ -9,8 +9,12 @@ COPY package*.json ./
# Install dependencies
RUN npm install
# Copy entrypoint script that generates config.json
COPY docker-dev-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
# Expose Vite dev server port
EXPOSE 5173
# Start development server with host binding for Docker
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
# Use entrypoint that generates config.json before starting Vite
ENTRYPOINT ["/docker-entrypoint.sh"]