forked from sensepost/cipherchecks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 746 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 746 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
26
27
28
FROM python:3.13-slim
# Configure Poetry
ENV POETRY_VERSION=2.2.1
ENV POETRY_HOME=/opt/poetry
ENV POETRY_VENV=/opt/poetry-venv
ENV POETRY_CACHE_DIR=/opt/.cache
# Install poetry separated from system interpreter
RUN python3 -m venv $POETRY_VENV \
&& $POETRY_VENV/bin/pip install -U pip setuptools \
&& $POETRY_VENV/bin/pip install poetry==${POETRY_VERSION}
# Add `poetry` to PATH
ENV PATH="${PATH}:${POETRY_VENV}/bin"
WORKDIR /app
# Install build dependencies
RUN apt-get update && apt-get install -y build-essential cargo libffi-dev libssl-dev pkg-config
# Install dependencies
COPY poetry.lock pyproject.toml ./
RUN poetry install --no-root
# Run your app
COPY cipherchecks /app
ENTRYPOINT [ "poetry", "run", "python", "main.py" ]