-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (22 loc) · 913 Bytes
/
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
## This docker file needs two inputs from environment; directory name and bash script name
## This is provided via k8 job yaml file
# python image used for Extformer
FROM python:3.9.18
# set working dir
WORKDIR /usr/src/app
# install git
RUN apt-get update && apt-get install -y git
# Clone repository from GitHub
RUN git clone https://github.com/ramankhurana/ExtFormer.git
# Change the working directory
WORKDIR /usr/src/app/ExtFormer
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Make the shell script executable
RUN echo "changing permission"
RUN chmod +x scripts/long_term_forecast/*/*.sh
RUN echo "running the code"
# Command to execute the shell script
CMD ./scripts/long_term_forecast/$DIR_NAME/$SCRIPT_NAME
#RUN chmod +x scripts/long_term_forecast/M5/Autoformer_M5.sh
#CMD ["./scripts/long_term_forecast/M5/Autoformer_M5.sh"]