2021-05-25 08:23:11 +00:00
|
|
|
FROM ruby:2.7.3-buster
|
2021-04-29 09:59:25 +00:00
|
|
|
|
2021-05-25 08:23:11 +00:00
|
|
|
RUN apt update && apt install -y \
|
|
|
|
|
build-essential \
|
2021-06-14 02:03:13 +00:00
|
|
|
postgresql \
|
|
|
|
|
freetds-dev
|
2021-04-29 09:59:25 +00:00
|
|
|
|
|
|
|
|
RUN mkdir -p /app
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
COPY Gemfile Gemfile.lock ./
|
|
|
|
|
RUN gem install bundler && RAILS_ENV=production bundle install --jobs 20 --retry 5
|
|
|
|
|
|
|
|
|
|
ENV RAILS_ENV=production
|
|
|
|
|
|
|
|
|
|
COPY . ./
|
2021-06-09 12:40:46 +00:00
|
|
|
RUN ["chmod", "755", "docker/entrypoints/server.sh"]
|
2021-06-24 11:10:26 +00:00
|
|
|
ENTRYPOINT ["./docker/entrypoints/server.sh"]
|