-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (35 loc) · 964 Bytes
/
Dockerfile
File metadata and controls
45 lines (35 loc) · 964 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM python:3.12-slim
# Set working directory
WORKDIR /app
### Install system dependencies
RUN apt-get update && apt-get install -y \
netcat-openbsd \
git \
wget \
build-essential \
zlib1g-dev \
libbz2-dev \
&& rm -rf /var/lib/apt/lists/*
RUN pip install -U pip setuptools wheel "connexion[flask,swagger-ui,uvicorn]"
COPY . /app
RUN pip install /app
COPY requirements.local.txt .
RUN pip install -r requirements.local.txt
# Checkout code
# RUN --mount=type=bind,source=./,target=/app/src/
# COPY \
# requirements.local.txt \
# setup.py \
# pyproject.toml \
# .
# COPY catch_analysis_tools /app/catch_analysis_tools
# # ARG CAT_DEPLOYMENT
# # RUN if [ "$CAT_DEPLOYMENT" = "prod" ]; then \
# # git clone git+https://github.com
# # pip install -r src/requirements.prod.txt; \
# # else \
# # fi
# # Install dependencies
# #RUN pip install -r requirements.local.txt;
EXPOSE 8000
CMD ["python3", "-m", "catch_analysis_tools.app.app"]