-
Notifications
You must be signed in to change notification settings - Fork 34
/
Dockerfile
35 lines (21 loc) · 656 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
35
FROM ruby:alpine
LABEL maintainer="[email protected]"
RUN apk update && apk upgrade \
&& apk add --no-cache bash git openssh make cmake gcc libc-dev build-base
RUN set -x \
# Run as non-root user
&& addgroup --system --gid 22430 releng \
&& adduser --system --disabled-password --ingroup releng --no-create-home \
--gecos "releng user" --shell /bin/false \
--uid 22430 releng
ENV APP_ROOT /usr/app
RUN mkdir -p $APP_ROOT
WORKDIR $APP_ROOT
COPY . $APP_ROOT
RUN bundle install
EXPOSE 8080 8000 443
ENV REDIS_URL "redis://host.docker.internal"
STOPSIGNAL SIGTERM
WORKDIR $APP_ROOT
USER releng
CMD bundle exec unicorn