forked from amelbakry/kube-schedule-scaler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (20 loc) · 861 Bytes
/
Dockerfile
File metadata and controls
24 lines (20 loc) · 861 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
FROM ubuntu:22.04
MAINTAINER "sakamoto@chatwork.com"
# Install python tools and dev packages
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -q -y --no-install-recommends python3-pip python3-setuptools python3-wheel gcc cron tini \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# set python 3 as the default python version
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1 \
&& update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
COPY ./requirements.txt /root/
RUN pip3 install --upgrade pip requests setuptools pipenv
RUN pip3 install -r /root/requirements.txt
ADD schedule_scaling /root/schedule_scaling
COPY ./run_missed_jobs.py /root
RUN chmod a+x /root/run_missed_jobs.py
COPY ./startup.sh /root
RUN chmod a+x /root/startup.sh
ENTRYPOINT ["tini", "--", "/root/startup.sh"]