update windmill

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-07-21 18:35:48 -04:00
parent b083c4224e
commit 2f7705a41a
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 12 additions and 1 deletions

View File

@ -1,6 +1,7 @@
FROM ruby:alpine FROM ruby:alpine
RUN apk add --no-cache \ RUN apk add --no-cache \
bash \
ca-certificates \ ca-certificates \
libxml2 \ libxml2 \
libxslt \ libxslt \
@ -27,4 +28,7 @@ RUN set -x \
WORKDIR /usr/src/windmill WORKDIR /usr/src/windmill
CMD [ "rake", "db:setup", "&&", "ruby", "server.rb" ] COPY entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT [ "entrypoint.sh" ]
CMD [ "ruby", "server.rb" ]

7
windmill/entrypoint.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
set -o pipefail
rake db:setup
exec "$@"