-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (19 loc) · 765 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (19 loc) · 765 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
# Use the official Python image from the Docker Hub
FROM python:3.9-slim
# Upgrade the pip version to the most recent version
RUN pip install --upgrade pip
LABEL maintainer="philippe.saade@wikimedia.de"
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container
COPY ./docker/1_Data_Processing_save_labels_descriptions/requirements.txt requirements.txt
# Install the dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code into the container
COPY ./docker/1_Data_Processing_save_labels_descriptions /app
COPY ./src /src
# Set up the volume for the data folder
VOLUME [ "/data" ]
ENV PYTHONPATH="${PYTHONPATH}:/"
# Run the Python script
CMD ["python", "run.py"]