Mbonea commited on
Commit
2b3dee1
·
1 Parent(s): 1a92f7e

UPDATED TIMEZONE

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -2
Dockerfile CHANGED
@@ -1,8 +1,7 @@
1
  # Use an official Python image as a base
2
  FROM python:3.10-slim
3
 
4
- # Install OpenVPN and dependencies
5
- RUN apt update && apt install -y openvpn
6
  # Set the working directory in the container
7
  WORKDIR /app
8
 
@@ -13,6 +12,16 @@ COPY requirements.txt /app/requirements.txt
13
  RUN pip install --no-cache-dir --upgrade pip && \
14
  pip install --no-cache-dir -r requirements.txt
15
 
 
 
 
 
 
 
 
 
 
 
16
  # Copy the rest of the application files
17
  COPY . /app
18
 
 
1
  # Use an official Python image as a base
2
  FROM python:3.10-slim
3
 
4
+
 
5
  # Set the working directory in the container
6
  WORKDIR /app
7
 
 
12
  RUN pip install --no-cache-dir --upgrade pip && \
13
  pip install --no-cache-dir -r requirements.txt
14
 
15
+ # Set timezone environment variable
16
+ ENV TZ=Africa/Dar_es_Salaam
17
+
18
+ # Install tzdata for timezone management
19
+ RUN apt-get update && apt-get install -y tzdata && \
20
+ ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
21
+ apt-get clean
22
+
23
+
24
+
25
  # Copy the rest of the application files
26
  COPY . /app
27