From 9dfe7606bb0b9d54d7dd06fd3f468b9448b4b176 Mon Sep 17 00:00:00 2001 From: charleszlu Date: Thu, 30 May 2019 07:40:12 +1000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4417d83..1f5777b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,13 @@ -FROM ubuntu:latest +FROM alpine # Labels -LABEL maintainer="Paulino Padial " +LABEL maintainer="Charles Lu " # Environment variables (with default values) ENV CRON_LOG_LEVEL=8 -# PostgreSQL 10 repository install -RUN apt-get update && apt-get upgrade -y && \ - apt-get install -y wget lsb-release && \ - wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | apt-key add - && \ - echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list - # Packages installation -RUN apt-get update && apt-get upgrade -y && \ - apt-get install -y autopostgresqlbackup cron bzip2 gzip postgresql-client && \ +RUN apk --update add --no-cache bash cron bzip2 gzip postgresql-client && \ apt-get purge -y --auto-remove && \ rm -rf /var/lib/apt/lists/*