-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 770 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 770 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
FROM python:3.12.0-slim
# Set the working directory
WORKDIR /app
# Install virtualenv
RUN pip install --no-cache-dir virtualenv
# Create a virtual environment
RUN virtualenv venv
# Activate the virtual environment and install dependencies
COPY requirements.txt .
RUN . venv/bin/activate && pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
COPY ./constants/constants.ini /app/constants/constants.ini
COPY ./constants/constants.ini /app/constants/constants_template.ini
COPY ./config.json_template /app/config.json
# Install python-pptx
RUN ./nltk.sh
# Expose the port the app runs on
EXPOSE 8000
# Run the application using the virtual environment
CMD ["sh", "-c", ". venv/bin/activate && python configservice.py"]