We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d289bcf commit 2467474Copy full SHA for 2467474
2 files changed
simple-examples/Dockerfile
@@ -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
@@ -0,0 +1,8 @@
+version: "3.8"
+services:
+ worker:
+ build:
+ context: ./
+ dockerfile: Dockerfile
+ env_file:
+ - ../.env
0 commit comments