File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
# ircapp
2
2
#
3
- # BUILD: docker build --no-cache --rm -t ircapp .
3
+ # BUILD: docker build --no-cache --build-arg TIMEZONE=`cat /etc/timezone` -- rm -t ircapp .
4
4
# RUN: docker run --restart="unless-stopped" --name ircapp -p 127.0.0.1:8083:8020 -v $DB_ROOT:/root/.IRCapp -v $DOWNLOAD_ROOT:/root/Downloads --detach=true ircapp
5
5
6
6
FROM phusion/baseimage:0.9.15
7
7
8
+ # Default
9
+ ARG TIMEZONE=Europe/Paris
10
+
8
11
# Use baseimage-docker's init system.
9
12
CMD ["/sbin/my_init" ]
10
13
@@ -19,7 +22,7 @@ COPY . /ircapp
19
22
RUN mkdir $HOME/.IRCapp
20
23
21
24
# Fixup timezone, if necessary.
22
- RUN cd /ircapp; sed -i "/^timezone.*/c\t imezone = $(cat /etc/timezone) " config.ini
25
+ RUN cd /ircapp; sed -i "/^timezone.*/c\t imezone = $TIMEZONE " config.ini
23
26
24
27
# Do not run in debug mode, if necessary.
25
28
RUN cd /ircapp; sed -i "/^DEBUG = True/c\D EBUG = False" settings.py
You can’t perform that action at this time.
0 commit comments