Skip to content

Commit

Permalink
fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
mardafirmansyah committed Jan 20, 2019
1 parent f472196 commit 323a583
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM phusion/baseimage:latest
FROM ubuntu:bionic
#ubuntu:bionic
LABEL maintainer="marda.firmansyah@zenofa.com"

# Tell the container there is no tty
Expand All @@ -19,6 +20,5 @@ RUN apt-get update \

COPY . /app

RUN chmod +x /app/bin/*

RUN ln -s /app/bin/set_timezone.sh /etc/my_init.d/00_set_timezone.sh
RUN chmod a+x /app/bin/*.sh && \
/app/bin/set_timezone.sh
3 changes: 2 additions & 1 deletion bin/set_timezone.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash

echo ${CONTAINER_TIMEZONE:-$DEFAULT_CONTAINER_TIMEZONE} > /etc/timezone
echo "Change Timezone to ${CONTAINER_TIMEZONE:-$DEFAULT_CONTAINER_TIMEZONE}"
unlink /etc/localtime
ln -fs /usr/share/zoneinfo/${CONTAINER_TIMEZONE:-$DEFAULT_CONTAINER_TIMEZONE} /etc/localtime
dpkg-reconfigure tzdata

0 comments on commit 323a583

Please sign in to comment.