tripweb/Dockerfile
2025-07-23 17:29:02 +02:00

18 lines
486 B
Docker

# Node builder
FROM node:22 AS build
WORKDIR /app
COPY src/package.json ./
RUN npm install
COPY src .
RUN npm run build
# Server
FROM python:3.12-slim
LABEL maintainer="github.com/itskovacs"
LABEL description="Minimalist POI Map Tracker and Trip Planner"
WORKDIR /app
COPY backend .
RUN pip install --no-cache-dir -r trip/requirements.txt
COPY --from=build /app/dist/trip/browser ./frontend
EXPOSE 8000
CMD ["fastapi", "run", "/app/trip/main.py", "--host", "0.0.0.0", "--port", "8000"]