chore: add container configuration with Dockerfile, docker-compose and makefile for deployment

This commit is contained in:
Esa Kataja
2025-08-04 15:55:30 +03:00
parent bfe9a2b835
commit 7de4eedcb0
3 changed files with 33 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM python:3.12-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /app
COPY pyproject.toml uv.lock /app/
RUN uv sync --locked
COPY src .
EXPOSE 8000
CMD ["uv", "run", "main.py"]
+6
View File
@@ -0,0 +1,6 @@
services:
jobpostingparser:
image: localhost/jobpostingparser:latest
ports:
- "9000:8000"
+13
View File
@@ -0,0 +1,13 @@
.PHONY: build run save
build:
podman build . -t localhost/jobpostingparser:latest
run:
podman-compose up -d --build
save:
podman save -o jobpostingparser.tar localhost/jobpostingparser:latest