aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2025-10-01 16:07:59 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2025-10-01 16:07:59 +0100
commit7cd309730e42983178d8f9632d25497dc7e20c22 (patch)
tree414fd0b82fd92e142523f5e80b7e2990162bb87a
parentc01ae2c33ccf8d40b3957d918cc7c58eb60d3eaf (diff)
downloadSmallYTChannelBot-7cd309730e42983178d8f9632d25497dc7e20c22.tar.gz
SmallYTChannelBot-7cd309730e42983178d8f9632d25497dc7e20c22.zip
Removed some modules to save image size
-rwxr-xr-xDockerfile5
-rwxr-xr-xcron/Dockerfile2
-rwxr-xr-xcron/requirements.txt2
3 files changed, 6 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 8b010be..423b259 100755
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,8 +1,9 @@
FROM ubuntu:22.04
-MAINTAINER Eden Attenborough "eddie.atten.ea29@gmail.com"
ARG DEBIAN_FRONTEND=noninteractive
+ENV TZ=Europe/London
+RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update -y
-RUN apt-get install -y python3-pip build-essential libjpeg-dev zlib1g-dev
+RUN apt-get install -y python3-pip build-essential tzdata
COPY . /app
WORKDIR /app
RUN pip3 install -r requirements.txt
diff --git a/cron/Dockerfile b/cron/Dockerfile
index 821b48a..0239a65 100755
--- a/cron/Dockerfile
+++ b/cron/Dockerfile
@@ -1,6 +1,8 @@
FROM reg.reaweb.uk/smallytchannelbot
MAINTAINER Eden Attenborough "eddie.atten.ea29@gmail.com"
ARG DEBIAN_FRONTEND=noninteractive
+ENV TZ=Europe/London
+RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get install -y tzdata cron mariadb-client
COPY . /app
WORKDIR /app
diff --git a/cron/requirements.txt b/cron/requirements.txt
index 86f552b..f2c4fc9 100755
--- a/cron/requirements.txt
+++ b/cron/requirements.txt
@@ -1,3 +1,3 @@
numpy==1.26.4
-matplotlib
+# matplotlib
discord-webhook