This commit is contained in:
Yuan Ting Jing 2026-08-04 19:08:08 +02:00 committed by GitHub
commit 5b2e2cc8c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

15
Dockerfile.railway Normal file
View File

@ -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"]

View File

@ -14,6 +14,7 @@ export default defineConfig({
server: {
port: 3000,
open: true,
allowedHosts: 'all',
proxy: {
'/api': {
target: 'http://localhost:5001',