summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..aeca5eb
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,18 @@
+FROM python:3.10
+
+ENV PYTHONDONTWRITEBYTECODE 1 \
+ PYTHONUNBUFFERED 1 \
+ PIP_DISABLE_PIP_VERSION_CHECK 1
+
+RUN pip install poetry
+
+WORKDIR /machinis
+
+COPY poetry.lock pyproject.toml /machinis/
+
+RUN poetry config virtualenvs.create false \
+ && poetry install --no-dev --no-interaction --no-ansi
+
+COPY . /machinis
+
+ENTRYPOINT ["poetry", "run", "python", "-m", "machinis"]