Archived
chore: add container configuration with Dockerfile, docker-compose and makefile for deployment
This commit is contained in:
+14
@@ -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"]
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
services:
|
||||||
|
jobpostingparser:
|
||||||
|
image: localhost/jobpostingparser:latest
|
||||||
|
ports:
|
||||||
|
- "9000:8000"
|
||||||
|
|
||||||
Reference in New Issue
Block a user