-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
36 lines (28 loc) · 1.12 KB
/
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
30
31
32
33
34
35
36
FROM python:3.12-slim
WORKDIR /usr/src/app
# Install required system packages
RUN apt-get update && apt-get install -y --no-install-recommends gcc libpq-dev && rm -rf /var/lib/apt/lists/*
# Copy application files and requirements
COPY requirements.txt ./
COPY init.py ./
ENV PYTHONUNBUFFERED=1
# Copy additional Python scripts
COPY update/abstractImport.py ./
COPY update/conflictsImport.py ./
COPY update/dataTransformer.py ./
COPY update/executeFeatureGenerator.py ./
COPY update/retrieveAltmetric.py ./
COPY update/retrieveDynamoDb.py ./
COPY update/retrieveNIH.py ./
COPY update/retrieveS3.py ./
COPY update/updateReciterDB.py ./
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Or, if not using requirements.txt:
# RUN pip install requests boto3 dynamodb-json
# Create required directories
RUN mkdir -p temp
RUN mkdir -p temp/parsedOutput
RUN mkdir -p temp/s3Output
# Final command
CMD [ "/bin/bash", "-c", "python3 executeFeatureGenerator.py && python3 ./retrieveS3.py && python3 ./retrieveDynamoDb.py && python3 ./retrieveNIH.py && python3 ./conflictsImport.py && python3 ./abstractImport.py" ]