-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (34 loc) · 833 Bytes
/
Dockerfile
File metadata and controls
45 lines (34 loc) · 833 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM ruby:2.6-alpine
# Environment variables:
ENV RACK_ENV ''
ENV GOOGLE_AUTH_DOMAIN ''
ENV SESSION_SECRET ''
ENV OAUTH_ID ''
ENV OAUTH_SECRET ''
ENV DB_ADAPTER ''
ENV DB_HOSTNAME ''
ENV DB_PORT 5432
ENV DB_USERNAME ''
ENV DB_PASSWORD ''
ENV DB_NAME ''
ENV READ_DATABASES ''
ENV MISC_DEFAULT false
ENV MISC_DBLISTMATCH false
RUN apk --update add postgresql-client libstdc++
# Rubygems and bundler
RUN gem update --system --no-document
RUN gem install bundler --no-document
RUN mkdir /app
ADD Gemfile /app/
ADD Gemfile.lock /app/
WORKDIR /app
RUN apk --update add --virtual build-dependencies g++ musl-dev make \
postgresql-dev && \
bundle config set deployment 'true' && \
bundle install && \
apk del build-dependencies
ADD . /app
RUN chown -R nobody:nogroup /app
USER nobody
CMD /app/docker_runner.rb
EXPOSE 3000