-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (43 loc) · 1.13 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
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:22.04
ENV PYTHONBUFFERED=1
RUN \
echo "**** Install Packages ****" && \
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq \
cron \
wget \
python3 \
python3-pip \
golang-go \
nodejs \
npm \
libwebp-dev \
git \
&& rm -rf /var/lib/apt/lists/* && \
echo "**** Get Pixlet ****" && \
cd /tmp && \
git clone https://github.com/tidbyt/pixlet && \
cd pixlet && \
npm install && \
npm run build && \
make build && \
mv pixlet /usr/bin/pixlet && \
chmod +x /usr/bin/pixlet && \
rm -rf /tmp/* && \
echo "**** Remove Unneeded Packages ****" && \
apt-get purge -y \
wget \
golang-go \
nodejs \
npm \
git && \
apt-get autoremove -y
COPY src/ /src
COPY app/custom-cron /etc/cron.d/custom-cron
COPY app/script.py /app/script.py
COPY app/entrypoint.sh /app/entrypoint.sh
RUN chmod 0744 /etc/cron.d/custom-cron && \
crontab /etc/cron.d/custom-cron && \
chmod 0744 /app/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]