forked from Rat-Rig/V-Minion
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (22 loc) · 668 Bytes
/
Dockerfile
File metadata and controls
25 lines (22 loc) · 668 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
25
FROM python:3.10.1-alpine3.15
RUN apk add --no-cache \
bash \
curl \
git \
git-fast-import \
openssh \
rust \
cargo \
openssl-dev \
libffi-dev
RUN apk add --no-cache --virtual .build gcc musl-dev
ENV POETRY_VERSION=1.1.12
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python3 && \
cd /usr/local/bin && \
ln -s /opt/poetry/bin/poetry && \
poetry config virtualenvs.create false
COPY poetry.lock pyproject.toml /app/
COPY ratrig-productpages /app/ratrig-productpages
WORKDIR /app
RUN poetry install --no-root --no-dev --no-interaction --no-ansi
CMD ["mkdocs", "serve", "-a", "0.0.0.0:8000"]