-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
31 lines (26 loc) · 764 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
FROM alpine:latest
LABEL org.opencontainers.image.authors="raphael.valyi@akretion.com"
WORKDIR /usr/src/app
COPY . .
RUN addgroup -S app && adduser -S -G app app && \
mkdir -p tmp log && chown app:app tmp log
RUN set -eux; \
apk update && \
apk upgrade && \
apk add --no-cache \
build-base \
ghostscript \
git \
ruby-dev \
&& rm -rf /var/cache/apk/* \
;
RUN set -eux; \
gem install bundler:2.5.11 --no-document \
&& bundle install \
&& rm -rf /usr/local/bundle/cache/*.gem \
;
# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1 && bundle install
EXPOSE 9292
USER app
CMD ["bundle", "exec", "puma", "config.ru"]