sdy

add dockerize

...@@ -4,6 +4,13 @@ RUN npm i -g @prisma/cli ...@@ -4,6 +4,13 @@ RUN npm i -g @prisma/cli
4 RUN mkdir /app 4 RUN mkdir /app
5 WORKDIR /app 5 WORKDIR /app
6 6
7 +ENV DOCKERIZE_VERSION v0.6.1
8 +RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
9 + && tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
10 + && rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz
11 +
12 +ENTRYPOINT [ "dockerize", "-wait", "tcp://root:prisma@mysql:3306/prisma:3306", "-timeout", "25s" ]
13 +
7 COPY ./ ./prisma/ 14 COPY ./ ./prisma/
8 15
9 CMD ["prisma", "studio", "--experimental"] 16 CMD ["prisma", "studio", "--experimental"]
...\ No newline at end of file ...\ No newline at end of file
......