Make dockerfile and fix multitag filter

master
bel 2019-12-07 14:26:44 -07:00
parent 8728b7d694
commit 72169206f8
4 changed files with 28 additions and 1 deletions

17
Dockerfile Executable file
View File

@ -0,0 +1,17 @@
FROM frolvlad/alpine-glibc:alpine-3.9_glibc-2.29
RUN apk update \
&& apk add --no-cache \
ca-certificates \
git \
bash \
php php-sqlite3 php-pdo php-pdo_mysql php-json php-pdo_sqlite
RUN mkdir -p /var/log
WORKDIR /main
COPY . .
ENV GOPATH=""
ENV MNT="/mnt/"
ENTRYPOINT ["/bin/bash", "/main/entrypoint.sh"]
CMD []

9
entrypoint.sh Executable file
View File

@ -0,0 +1,9 @@
#! /bin/bash
(
pushd /main/testdata/mytinytodo*
php -S 0.0.0.0:38808
kill -9 1
) &
exec /main/exec-todo-server "$@"

1
testdata/migrate.sh vendored
View File

@ -106,5 +106,6 @@ function add_task() {
} }
if [ "$0" == "$BASH_SOURCE" ]; then if [ "$0" == "$BASH_SOURCE" ]; then
echo bash migrate.sh 192.168.0.86:44112 localhost:39909
time main "$@" time main "$@"
fi fi