Skip to content

Commit 70ac01c

Browse files
committed
Build & run system revamp
1 parent 16480f7 commit 70ac01c

File tree

3 files changed

+8
-31
lines changed

3 files changed

+8
-31
lines changed

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
FROM alpine:3.12
1+
FROM alpine:3.13
22
LABEL maintainer="Fedor Borshev <[email protected]>"
33

4-
ADD install.sh install.sh
5-
RUN sh install.sh && rm install.sh
4+
RUN apk update \
5+
&& apk --no-cache add dumb-init postgresql-client curl aws-cli
6+
7+
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
68

79
ENV POSTGRES_DATABASE **None**
810
ENV POSTGRES_HOST **None**
@@ -19,8 +21,8 @@ ENV S3_ENDPOINT **None**
1921
ENV S3_S3V4 no
2022
ENV SCHEDULE **None**
2123

22-
ADD run.sh run.sh
23-
ADD backup.sh backup.sh
24+
ADD entrypoint.sh .
25+
ADD backup.sh .
2426

2527
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
26-
CMD ["sh", "run.sh"]
28+
CMD ["sh", "entrypoint.sh"]

run.sh renamed to entrypoint.sh

File renamed without changes.

install.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)