forked from avinson/rom24-quickmud
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (18 loc) · 719 Bytes
/
Dockerfile
File metadata and controls
24 lines (18 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.11-slim
WORKDIR /app
# Disable Poetry's virtualenv creation so everything installs into the
# container's Python environment.
ENV POETRY_VIRTUALENVS_CREATE=false
# Install Poetry and project dependencies from the mud directory.
RUN pip install --no-cache-dir poetry
COPY mud/pyproject.toml mud/pyproject.toml
RUN poetry -C mud install --no-interaction --no-ansi --no-root
# Copy the rest of the repository
COPY . .
# Install the quickmud package itself so the "mud" entry point is available.
# Poetry cannot discover the package because the project name differs from the
# package directory, so we provide our own setup.py.
COPY setup.py ./
RUN pip install -e .
EXPOSE 5001
CMD ["mud", "runserver"]