We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ac367b commit 14dd5c1Copy full SHA for 14dd5c1
Dockerfile
@@ -1,11 +1,18 @@
1
FROM python:3.12-slim
2
3
+#argument to enable GPU accelaration
4
+ARG GPU=false
5
+
6
# Install (and build) requirements
7
COPY requirements.txt /requirements.txt
8
+COPY requirements_gpu.txt /requirements_gpu.txt
9
RUN apt-get clean && rm -rf /var/lib/apt/lists/* && \
10
apt-get update --fix-missing && \
11
apt-get install --allow-unauthenticated -y git curl && \
12
pip install -r requirements.txt && \
13
+ if [ "$GPU" = true ]; then \
14
+ pip install -r requirements_gpu.txt; \
15
+ fi && \
16
apt-get clean && rm -rf /var/lib/apt/lists/*
17
18
COPY . .
@@ -72,4 +79,4 @@ CMD date; \
72
79
echo "Running..."; \
73
80
/main -r --words words/abbreviationList.csv
74
81
75
-ENV TZ=US/Michigan
82
+ENV TZ=US/Michigan
0 commit comments