-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (31 loc) · 851 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
26
27
28
29
30
31
32
33
34
FROM alpine:latest
LABEL maintainer "Gabriel de Oliveira <deoliveira.gab@gmail.com>"
WORKDIR /opt/app/
COPY . .
RUN set -euvxo pipefail\
&& apk upgrade --available --latest --no-cache\
&& apk add --no-cache\
git\
openssh-client\
ruby-irb\
&& apk add --no-cache --virtual .build_dependencies\
g++\
libffi-dev\
make\
ruby-dev\
&& gem update --clear-sources --no-document --system\
&& gem update --clear-sources --no-document\
&& gem install --clear-sources --no-document\
bundler\
io-console\
&& gem cleanup\
&& mkdir ../container/\
&& mkdir ../container/coverage/\
&& mkdir ../container/doc/\
&& mkdir ../container/pkg/\
&& mkdir ../container/tmp/\
&& bundle install --clean --no-cache --system\
&& bundle clean --force\
&& apk del --no-cache .build_dependencies
CMD ["/bin/ash"]
ENTRYPOINT ["docker/entrypoint.sh"]