Skip to content

Commit 140ed60

Browse files
authored
Merge pull request #120 from jkaninda/fix-dockerfile
fix: Dockerfile backup, restore, and migrate scripts since the migration of base image from Ubuntu to alpine
2 parents 4e4d45e + 98211a2 commit 140ed60

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ENV VERSION=${appVersion}
5353
LABEL author="Jonas Kaninda"
5454
LABEL version=${appVersion}
5555

56-
RUN apk --update add --no-cache mysql-client mariadb-connector-c tzdata
56+
RUN apk --update add --no-cache mysql-client mariadb-connector-c tzdata ca-certificates
5757
RUN mkdir $WORKDIR
5858
RUN mkdir $BACKUPDIR
5959
RUN mkdir $TEMPLATES_DIR
@@ -70,13 +70,13 @@ RUN chmod +x /usr/local/bin/mysql-bkup
7070
RUN ln -s /usr/local/bin/mysql-bkup /usr/local/bin/bkup
7171

7272
# Create backup script and make it executable
73-
RUN echo '#!/bin/sh\n/usr/local/bin/mysql-bkup backup "$@"' > /usr/local/bin/backup && \
73+
RUN printf '#!/bin/sh\n/usr/local/bin/mysql-bkup backup "$@"' > /usr/local/bin/backup && \
7474
chmod +x /usr/local/bin/backup
7575
# Create restore script and make it executable
76-
RUN echo '#!/bin/sh\n/usr/local/bin/mysql-bkup restore "$@"' > /usr/local/bin/restore && \
76+
RUN printf '#!/bin/sh\n/usr/local/bin/mysql-bkup restore "$@"' > /usr/local/bin/restore && \
7777
chmod +x /usr/local/bin/restore
7878
# Create migrate script and make it executable
79-
RUN echo '#!/bin/sh\n/usr/local/bin/mysql-bkup migrate "$@"' > /usr/local/bin/migrate && \
79+
RUN printf '#!/bin/sh\n/usr/local/bin/mysql-bkup migrate "$@"' > /usr/local/bin/migrate && \
8080
chmod +x /usr/local/bin/migrate
8181

8282
WORKDIR $WORKDIR

0 commit comments

Comments
 (0)