diff options
| author | 2020-08-25 13:24:16 +0100 | |
|---|---|---|
| committer | 2020-08-25 13:24:16 +0100 | |
| commit | 141989079ece60b62eb8e1dd67e1a3750e0f6e22 (patch) | |
| tree | 9e1f68955ecfb4b67a49873af05184231093ca26 | |
| parent | Entrypoints and logging (diff) | |
Dockerfile
| -rw-r--r-- | Dockerfile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d1fa475 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM python:slim + +ENV PYTHONFAULTHANDLER=1 \ + PYTHONUNBUFFERED=1 \ + PYTHONHASHSEED=random \ + PIP_NO_CACHE_DIR=off \ + PIP_DISABLE_PIP_VERSION_CHECK=on \ + PIP_DEFAULT_TIMEOUT=100 + +WORKDIR /metricity +COPY poetry.lock pyproject.toml /metricity/ + +RUN poetry config virtualenvs.create false && poetry install + +COPY . /metricity + +CMD ["sh", "-c", "alembic upgrade head && poetry run start"] |