release: cut v2.1
This commit is contained in:
25
Dockerfile
Normal file
25
Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PIP_NO_CACHE_DIR=1 \
|
||||
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
||||
http_proxy= \
|
||||
https_proxy= \
|
||||
HTTP_PROXY= \
|
||||
HTTPS_PROXY= \
|
||||
no_proxy= \
|
||||
NO_PROXY=
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements-admin.txt /tmp/requirements-admin.txt
|
||||
|
||||
RUN python -m pip install --upgrade pip \
|
||||
&& python -m pip install -r /tmp/requirements-admin.txt
|
||||
|
||||
COPY . /app
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["python", "-m", "admin.app", "--host", "0.0.0.0", "--port", "8000", "--log-format", "json"]
|
||||
Reference in New Issue
Block a user