summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-09-23 22:42:14 -0700
committerFuwn <[email protected]>2022-09-23 22:42:14 -0700
commit5bc398b5166e49147fa5fac41de0bc866a2159e0 (patch)
treeb273f21291c9b326297971bafed9ac0b1d5e9b49 /Dockerfile
downloadmachinis-5bc398b5166e49147fa5fac41de0bc866a2159e0.tar.xz
machinis-5bc398b5166e49147fa5fac41de0bc866a2159e0.zip
feat: initial commit
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"]