-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (26 loc) · 803 Bytes
/
Dockerfile
File metadata and controls
38 lines (26 loc) · 803 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM ruby:2.3.6-alpine
ARG BUILD_SOURCE
ARG REPO_NAME
ARG REPO_OWNER
LABEL org.opencontainers.image.vendor=${REPO_OWNER} \
org.opencontainers.image.title=${REPO_NAME} \
org.opencontainers.image.source=${BUILD_SOURCE}
ENV LANG C.UTF-8
ENV TERM xterm-256color
RUN apk add --update --no-cache \
bash \
git \
curl \
build-base
WORKDIR /app
COPY Gemfile Gemfile.lock /app/
RUN bundle install --deployment
COPY maxminddb /app/maxminddb
COPY crontab /etc/crontabs/root
COPY entrypoint.sh /docker-entrypoint.sh
COPY crontab config.ru Rakefile update_db.sh /app/
COPY config /app/config
COPY lib /app/lib
EXPOSE 3000
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD bundle exec rerun --dir /app/maxminddb --background --pattern "**/*.mmdb" "rackup --host 0.0.0.0 --port 3000"