You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

56 lines
2.0 KiB

FROM alpine:3.13
LABEL maintainer="Dzango Technologies Limited <info@dzangolab.com>"
ENV GLIBC_VER=2.33-r0
# install glibc compatibility for alpine
RUN apk --no-cache add \
binutils \
curl \
&& curl -sL https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub \
&& curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-${GLIBC_VER}.apk \
&& curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-bin-${GLIBC_VER}.apk \
&& curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-i18n-${GLIBC_VER}.apk \
&& apk add --no-cache \
glibc-${GLIBC_VER}.apk \
glibc-bin-${GLIBC_VER}.apk \
glibc-i18n-${GLIBC_VER}.apk \
postgresql \
&& /usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8 \
&& curl -sL https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o awscliv2.zip \
&& unzip awscliv2.zip \
&& aws/install \
&& rm -rf \
awscliv2.zip \
aws \
/usr/local/aws-cli/v2/*/dist/aws_completer \
/usr/local/aws-cli/v2/*/dist/awscli/data/ac.index \
/usr/local/aws-cli/v2/*/dist/awscli/examples \
glibc-*.apk \
&& curl -L --insecure https://github.com/odise/go-cron/releases/download/v0.0.6/go-cron-linux.gz | zcat > /usr/local/bin/go-cron \
&& chmod u+x /usr/local/bin/go-cron \
&& apk --no-cache del \
binutils \
curl \
&& rm -rf /var/cache/apk/*
ADD run.sh run.sh
ADD backup.sh backup.sh
ENV POSTGRES_DATABASES **None**
ENV POSTGRES_EXTRA_OPTS ''
ENV POSTGRES_HOST **None**
ENV POSTGRES_PASSWORD **None**
ENV POSTGRES_PORT 5432
ENV POSTGRES_USER **None**
ENV S3_ACCESS_KEY_ID **None**
ENV S3_BUCKET **None**
ENV S3_ENDPOINT **None**
ENV S3_FILENAME **None**
ENV S3_PREFIX 'backup'
ENV S3_REGION us-west-1
ENV S3_S3V4 no
ENV S3_SECRET_ACCESS_KEY **None**
ENV SCHEDULE **None**
CMD ["sh", "run.sh"]