Skip to content
This repository was archived by the owner on Aug 3, 2025. It is now read-only.

Commit 09002f0

Browse files
authored
Merge pull request #15 from acm-uiuc/move-wait-for-it
Move wait-for-it out of /usr/src/app
2 parents 6103cd2 + 1cb3c5d commit 09002f0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@ COPY Gemfile* /usr/src/app/
1313
RUN bundle install
1414

1515
# Get wait-for-it
16-
RUN git clone https://github.com/vishnubob/wait-for-it && \
17-
cp wait-for-it/wait-for-it.sh wait-for-it.sh && \
18-
rm -rf wait-for-it/ && \
19-
chmod +x wait-for-it.sh
16+
RUN mkdir -p /usr/src/wait-for-it && \
17+
git clone https://github.com/vishnubob/wait-for-it /usr/src/wait-for-it && \
18+
chmod +x /usr/src/wait-for-it/wait-for-it.sh
2019

2120
# Bundle app source
2221
COPY . /usr/src/app
2322

2423
EXPOSE 8001
2524

26-
CMD [ "./wait-for-it.sh", "db:3306", "--", "ruby", "app.rb" ]
25+
CMD [ "/usr/src/wait-for-it/wait-for-it.sh", "db:3306", "--", "ruby", "/usr/src/app/app.rb" ]

0 commit comments

Comments
 (0)