-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
38 lines (33 loc) · 1.23 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
37
38
# Use an official Python 3.9 runtime as the base image
FROM python:3.9
# Add the current directory contents into the container at the root directory
ADD . /
# Create a data directory and grant group write permissions
RUN mkdir data && chmod g+w ./data
# Install Python dependencies from requirements.txt
RUN pip install -r requirements.txt
# Set the user to non-root (user ID 1001)
USER 1001
# Define the command to run when the container starts, including data_rules_url
CMD python etl.py \
--sftp_host=${sftp_host} \
--sftp_port=${sftp_port} \
--sftp_username=${sftp_username} \
--sftp_password=${sftp_password} \
--sftp_remote_path=${sftp_remote_path} \
--sftp_local_path=${sftp_local_path} \
--processed_data_path=${processed_data_path} \
--db_name=${db_name} \
--db_write_batch_size=${db_write_batch_size} \
--db_host=${db_host} \
--db_port=${db_port} \
--db_username=${db_username} \
--db_password=${db_password} \
--data_rules_url=${data_rules_url} \
--api_key=${api_key} \
--base_url=${base_url} \
--email_address=${email_address} \
--template_id=${template_id} \
--log_folder=${log_folder} \
--expire_api_url=${expire_api_url} \
--vhers_api_key=${vhers_api_key}