Skip to content

Commit 2467474

Browse files
committed
feat: dockerfile
1 parent d289bcf commit 2467474

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

simple-examples/Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM python:3.10-slim
2+
3+
ENV PYTHONFAULTHANDLER=1 \
4+
PYTHONHASHSEED=random \
5+
PYTHONUNBUFFERED=1
6+
7+
WORKDIR /app
8+
9+
ENV PIP_DEFAULT_TIMEOUT=100 \
10+
PIP_DISABLE_PIP_VERSION_CHECK=1 \
11+
PIP_NO_CACHE_DIR=1 \
12+
POETRY_VERSION=1.8.2
13+
14+
RUN pip install "poetry==$POETRY_VERSION"
15+
16+
COPY pyproject.toml poetry.lock README.md ./
17+
18+
COPY . /app
19+
20+
RUN poetry config virtualenvs.in-project true && \
21+
poetry install
22+
23+
ENTRYPOINT ["poetry", "run", "hatchet"]

simple-examples/docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: "3.8"
2+
services:
3+
worker:
4+
build:
5+
context: ./
6+
dockerfile: Dockerfile
7+
env_file:
8+
- ../.env

0 commit comments

Comments
 (0)