Make dockerfile and fix multitag filter
This commit is contained in:
17
Dockerfile
Executable file
17
Dockerfile
Executable 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
9
entrypoint.sh
Executable 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
1
testdata/migrate.sh
vendored
@@ -106,5 +106,6 @@ function add_task() {
|
||||
}
|
||||
|
||||
if [ "$0" == "$BASH_SOURCE" ]; then
|
||||
echo bash migrate.sh 192.168.0.86:44112 localhost:39909
|
||||
time main "$@"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user