-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (13 loc) · 570 Bytes
/
Dockerfile
File metadata and controls
17 lines (13 loc) · 570 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.11.3-slim
LABEL maintainer="Bane Sullivan"
LABEL repo="https://github.com/banesullivan/localtileserver"
COPY requirements.txt /build-context/
WORKDIR /build-context
RUN python -m pip install --upgrade pip
RUN pip install -r requirements.txt
COPY pyproject.toml /build-context/
COPY localtileserver/ /build-context/localtileserver/
RUN pip install build && python -m build --wheel
RUN pip install dist/localtileserver*.whl
ENTRYPOINT ["gunicorn", "--bind=0.0.0.0:8000", "localtileserver.web.wsgi:app"]
# docker run --rm -it -p 8000:8000 localtileserver