-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.run
32 lines (26 loc) · 1.01 KB
/
Dockerfile.run
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
FROM alpine:3.13
MAINTAINER Geoff Lane <[email protected]>
ENV REFRESHED_AT=2021-03025
ENV RAILS_ENV "production"
ENV RACK_ENV "production"
# Install ruby and dependencies
RUN apk --update --upgrade --no-cache add \
curl-dev ruby-dev build-base alpine-sdk coreutils postgresql-dev mysql-dev \
zlib-dev libxml2-dev libxslt-dev tzdata yaml-dev libffi-dev \
ruby-full git yaml nodejs npm && \
find / -type f -iname \*.apk-new -delete
# Install bundler and configure it
RUN gem install -N bundler && \
echo 'gem: --no-document' >> ~/.gemrc && \
cp ~/.gemrc /etc/gemrc && \
chmod uog+r /etc/gemrc && \
bundle config --global build.nokogiri "--use-system-libraries"
RUN apk --update --upgrade --no-cache -v add groff less python3 py3-pip && \
pip install awscli
# Add our app server daemon
RUN mkdir -p /etc/service/app
ADD docker-app.sh /etc/service/app/run
RUN chmod +x /etc/service/app/run
ENTRYPOINT /etc/service/app/run
# Make sure we start up in the app directory
WORKDIR /app