Jaimodiji commited on
Commit
3052bad
·
verified ·
1 Parent(s): b9647af

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -2
Dockerfile CHANGED
@@ -1,12 +1,20 @@
1
  FROM ubuntu:22.04
2
 
3
- # Install deps
 
 
 
4
  RUN apt update && apt install -y \
 
5
  nginx \
6
  supervisor \
7
  php php-fpm php-xml php-mbstring php-gd php-zip php-sqlite3 \
8
  curl unzip
9
 
 
 
 
 
10
  # Create dirs
11
  RUN mkdir -p /run/php && mkdir -p /workspace
12
 
@@ -16,7 +24,7 @@ COPY supervisor.conf /etc/supervisor/conf.d/supervisor.conf
16
  COPY start.sh /start.sh
17
  RUN chmod +x /start.sh
18
 
19
- # Install Nextcloud (example)
20
  RUN curl -L https://download.nextcloud.com/server/releases/latest.zip -o nextcloud.zip \
21
  && unzip nextcloud.zip -d /workspace \
22
  && rm nextcloud.zip \
 
1
  FROM ubuntu:22.04
2
 
3
+ # Avoid tzdata interactive prompts
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+
6
+ # Install packages (no timezone prompt)
7
  RUN apt update && apt install -y \
8
+ tzdata \
9
  nginx \
10
  supervisor \
11
  php php-fpm php-xml php-mbstring php-gd php-zip php-sqlite3 \
12
  curl unzip
13
 
14
+ # Set timezone non-interactively
15
+ ENV TZ=Asia/Kolkata
16
+ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
17
+
18
  # Create dirs
19
  RUN mkdir -p /run/php && mkdir -p /workspace
20
 
 
24
  COPY start.sh /start.sh
25
  RUN chmod +x /start.sh
26
 
27
+ # Install Nextcloud example
28
  RUN curl -L https://download.nextcloud.com/server/releases/latest.zip -o nextcloud.zip \
29
  && unzip nextcloud.zip -d /workspace \
30
  && rm nextcloud.zip \