Skip to content

Instantly share code, notes, and snippets.

@marcelorl
Created January 5, 2018 06:03
Show Gist options
  • Save marcelorl/715c985f56486e9248fee4b886537d8b to your computer and use it in GitHub Desktop.
Save marcelorl/715c985f56486e9248fee4b886537d8b to your computer and use it in GitHub Desktop.
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
@capaj
Copy link

capaj commented Jun 25, 2021

I spent too much time trying to run dockerize with node:alpine before I found this snippet. Thanks @marcelorl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment