aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Xithrius <[email protected]>2022-09-17 15:04:21 -0700
committerGravatar GitHub <[email protected]>2022-09-17 15:04:21 -0700
commit9101a47101dd16eb7d95329aa02324e546749d77 (patch)
treea042230f735517fea757476efe335d3ce2798df0 /Dockerfile
parentMerge pull request #20 from python-discord/update-staff-channel-logic (diff)
parentFix Poetry 1.2 Support (diff)
Merge pull request #30 from python-discord/poetry-1.2
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 5 insertions, 12 deletions
diff --git a/Dockerfile b/Dockerfile
index 926b015..fe2d01f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,19 +1,12 @@
-FROM python:3.9.5-slim
+FROM --platform=linux/amd64 ghcr.io/chrislovering/python-poetry-base:3.9-slim
-ENV PYTHONFAULTHANDLER=1 \
- PYTHONUNBUFFERED=1 \
- PYTHONHASHSEED=random \
- PIP_NO_CACHE_DIR=off \
- PIP_DISABLE_PIP_VERSION_CHECK=on \
- PIP_DEFAULT_TIMEOUT=100
-
-RUN pip install poetry
+ENV PYTHONHASHSEED=random
+# Install Dependencies
WORKDIR /metricity
-COPY poetry.lock pyproject.toml /metricity/
+COPY poetry.lock pyproject.toml ./
+RUN poetry install
-RUN poetry config virtualenvs.create false && poetry install
COPY . /metricity
-
CMD ["bash", "entry_point.sh"]