-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (33 loc) · 1.18 KB
/
Dockerfile
File metadata and controls
39 lines (33 loc) · 1.18 KB
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
# WARNING:
# This file is for development, not for production.
# For production, please refer to https://railsdiff.org/7.0.8.4/7.1.3.4#diff-466a28a0e93935ce250159682062e5a94698a3d8
# or SUS-ORS project.
# Dockerfile
FROM ruby:3.2.5
# Rails and SAPI has some additional dependencies, e.g. rake requires a JS
# runtime, so attempt to get these from apt, where possible
# socat is just for binding ports within docker, not needed for the application
RUN apt-get update && apt-get install -y --force-yes \
libsodium-dev libgmp3-dev libssl-dev \
libpq-dev postgresql-client \
nodejs \
socat \
texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra \
;
# NB: Postgres client from Debian is 9.4 - not sure if this is acceptable
RUN mkdir /SAPI
WORKDIR /SAPI
#
# Don't need to do these, as we have done this with Docker bindings
# COPY Gemfile /SAPI/Gemfile
# COPY Gemfile.lock /SAPI/Gemfile.lock
RUN gem install bundler -v 2.5.17
##
# This happens in the entrypoint
# RUN bundle install
#
# This is done via docker bindings
# COPY . /SAPI
ENTRYPOINT ["/SAPI/bin/docker-entrypoint-develop"]
EXPOSE 3000
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]