diff --git a/Dockerfile.railway b/Dockerfile.railway new file mode 100644 index 00000000..161ed616 --- /dev/null +++ b/Dockerfile.railway @@ -0,0 +1,15 @@ +FROM python:3.11-slim + +COPY --from=ghcr.io/astral-sh/uv:0.9.26 /uv /uvx /bin/ + +WORKDIR /app + +COPY backend/pyproject.toml backend/uv.lock ./ + +RUN uv sync --frozen + +COPY backend/ . + +EXPOSE 5001 + +CMD ["uv", "run", "python", "run.py"] diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 8f1e4c11..2c9137ef 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -14,6 +14,7 @@ export default defineConfig({ server: { port: 3000, open: true, + allowedHosts: 'all', proxy: { '/api': { target: 'http://localhost:5001',