Skip to content

Commit

Permalink
Merge pull request #12288 from pascalgrimaud/docker-image-tzdata
Browse files Browse the repository at this point in the history
Fix tzdata when building Docker image [skip ci]
  • Loading branch information
pascalgrimaud committed Aug 23, 2020
2 parents d3115ea + 09b5bad commit e657bf6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM ubuntu:20.04

RUN \
# configure the "jhipster" user
groupadd jhipster && \
useradd jhipster -s /bin/bash -m -g jhipster -G sudo && \
echo 'jhipster:jhipster' |chpasswd && \
mkdir /home/jhipster/app && \
export DEBIAN_FRONTEND=noninteractive && \
export TZ=Europe\Paris && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
apt-get update && \
# install utilities
apt-get install -y \
Expand All @@ -22,9 +24,6 @@ RUN \
build-essential \
software-properties-common \
sudo && \
# install tzdata
export DEBIAN_FRONTEND=noninteractive && \
apt-get install -y tzdata && \
# install OpenJDK 11
add-apt-repository ppa:openjdk-r/ppa && \
apt-get update && \
Expand Down

0 comments on commit e657bf6

Please sign in to comment.