-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
34 lines (24 loc) · 1008 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 ruby:3.3.1-bookworm
ENV RAILS_ENV=production
ENV BUNDLER_WITHOUT="development test"
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
postgresql-client postgresql-contrib libpq-dev \
tzdata
ARG BUNDLE_GEMS__CONTRIBSYS__COM
ENV BUNDLE_GEMS__CONTRIBSYS__COM $BUNDLE_GEMS__CONTRIBSYS__COM
# Get bundler 2.1
RUN gem install bundler
RUN mkdir /app
WORKDIR /app
COPY Gemfile Gemfile.lock ./
RUN bundle install
COPY . .
LABEL maintainer="Justin Coyne <[email protected]>"
LABEL description="The workflow server suitable for testing other applications in \
DLSS. This should not be used for production as it uses invoke.sh \
which performs database migrations automatically. This could be \
problematic if deployed as a cluster because we don't want all \
nodes to try to run the migrations."
ENV RAILS_ENV=production
CMD ["./docker/invoke.sh"]