Created
January 5, 2018 06:03
-
-
Save marcelorl/715c985f56486e9248fee4b886537d8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:alpine | |
RUN mkdir /project | |
RUN apk add --no-cache openssl | |
WORKDIR /project | |
ENV DOCKERIZE_VERSION v0.6.0 | |
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | |
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | |
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz | |
CMD dockerize -wait tcp://db:3306 -timeout 60m yarn start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I spent too much time trying to run dockerize with node:alpine before I found this snippet. Thanks @marcelorl