Skip to content

Commit

Permalink
Build & run system revamp
Browse files Browse the repository at this point in the history
  • Loading branch information
f213 committed Feb 9, 2021
1 parent 16480f7 commit 70ac01c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 31 deletions.
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM alpine:3.12
FROM alpine:3.13
LABEL maintainer="Fedor Borshev <[email protected]>"

ADD install.sh install.sh
RUN sh install.sh && rm install.sh
RUN apk update \
&& apk --no-cache add dumb-init postgresql-client curl aws-cli

RUN curl -L https://github.com/odise/go-cron/releases/download/v0.0.7/go-cron-linux.gz | zcat > /usr/local/bin/go-cron && chmod +x /usr/local/bin/go-cron

ENV POSTGRES_DATABASE **None**
ENV POSTGRES_HOST **None**
Expand All @@ -19,8 +21,8 @@ ENV S3_ENDPOINT **None**
ENV S3_S3V4 no
ENV SCHEDULE **None**

ADD run.sh run.sh
ADD backup.sh backup.sh
ADD entrypoint.sh .
ADD backup.sh .

ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["sh", "run.sh"]
CMD ["sh", "entrypoint.sh"]
File renamed without changes.
25 changes: 0 additions & 25 deletions install.sh

This file was deleted.

0 comments on commit 70ac01c

Please sign in to comment.