-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (30 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
46 lines (30 loc) · 1.06 KB
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
39
40
41
42
43
44
45
FROM alpine:latest
RUN \
apk update && apk upgrade && \
# install ruby
apk --no-cache add ruby ruby-dev ruby-rdoc ruby-bundler ruby-json ruby-irb ruby-rake ruby-bigdecimal && \
# gem 'oj', 'puma', 'byebug'
apk --no-cache add make gcc libc-dev && \
# gem 'nokogiri'
# bundle config --global build.nokogiri --use-system-libraries && \
# apk --no-cache add make libxml2 libxslt-dev g++ && \
# gem 'rb-readline'
# apk --no-cache add ncurses && \
# gem 'ffi'
# apk --no-cache add libffi-dev && \
# gem 'mysql2'dd
# apk --no-cache add mysql-dev && \
# gem 'unf_ext'
# apk --no-cache add g++ && \
# gem 'tiny_tds'
apk --no-cache add freetds-dev unixodbc-dev && \
# app dependencies
apk --no-cache add ca-certificates git && \
# clear after installation
rm -rf /var/cache/apk/*
# to avoid installing documentation for gems
COPY gemrc $HOME/.gemrc
# use mounted volume for gems
ENV BUNDLE_PATH /bundle& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
RUN gem install tiny_tds -f && gem install slacker
CMD /bin/bash -c "tail -f /dev/null"