-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
29 lines (22 loc) · 933 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM python:3.12.1-alpine3.19
ENV POETRY_INSTALLER_MAX_WORKERS=1
ENV POETRY_VIRTUALENVS_IN_PROJECT=false
ENV POETRY_VIRTUALENVS_PATH="/root/.venvs"
ENV VENV_PATH="${POETRY_VIRTUALENVS_PATH}/decky-plugin-store-9TtSrW0h-py3.12"
RUN apk add build-base
RUN apk add openssl-dev
RUN apk add python3-dev
RUN apk add curl libffi-dev \
&& curl -sSL https://install.python-poetry.org | python - --version 1.7.1 \
&& apk del curl libffi-dev
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:/root/.local/bin:$PATH"
WORKDIR /app
COPY ./pyproject.toml ./poetry.lock /app/
RUN poetry install --no-interaction --no-root
# All directories are unpacked. Due to it, each file must be specified separately!
COPY ./alembic.ini ./LICENSE ./Makefile ./README.md /app/
COPY ./plugin_store/ /app/plugin_store
COPY ./tests/ /app/tests
WORKDIR /app/plugin_store
ENV PYTHONUNBUFFERED=0
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5566"]