-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (18 loc) · 620 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM ruby:2.3-alpine
MAINTAINER ACM@UIUC
# Get packages for native extensions
RUN apk add --update alpine-sdk make mariadb-dev bash git
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
COPY Gemfile* /usr/src/app/
RUN bundle install
# Get wait-for-it
RUN mkdir -p /usr/src/wait-for-it && \
git clone https://github.com/vishnubob/wait-for-it /usr/src/wait-for-it && \
chmod +x /usr/src/wait-for-it/wait-for-it.sh
# Bundle app source
COPY . /usr/src/app
EXPOSE 6969
CMD [ "/usr/src/wait-for-it/wait-for-it.sh", "db:3306", "--", "ruby", "/usr/src/app/app.rb" ]