mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-10 15:02:41 +01:00
@@ -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
7
windmill/entrypoint.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
rake db:setup
|
||||||
|
|
||||||
|
exec "$@"
|
||||||
Reference in New Issue
Block a user