-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (35 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
43 lines (35 loc) · 1.03 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
40
41
42
43
FROM ruby:3.4-bookworm
LABEL maintainer="team@semantic.works"
ENV APP_ENTRYPOINT=web.rb
ENV RUBY_OPTIONS='--jit'
ENV RACK_ENV=production
ENV LOG_LEVEL=info
ENV RUBY_DEBUG_PORT=9229
ENV RUBY_DEBUG_HOST=0.0.0.0
ENV RUBY_DEBUG_OPEN=chrome
ENV USE_LEGACY_UTILS=true
ENV PRINT_DEPRECATION_WARNINGS=true
ENV MU_SPARQL_ENDPOINT=http://database:8890/sparql
ENV MU_APPLICATION_GRAPH=http://mu.semte.ch/application
ENV TRUSTED_IP=0.0.0.0/0
EXPOSE 80
RUN mkdir -p /usr/src/app
ADD . /usr/src/app
WORKDIR /app
RUN ln -s /app /usr/src/app/ext \
&& ln -s /app/spec /usr/src/app/spec/ext \
&& mkdir /logs \
&& touch /logs/application.log \
&& ln -sf /dev/stdout /logs/application.log \
&& cd /usr/src/app \
&& bundle install
ONBUILD ADD . /app/
ONBUILD RUN if [ -f /app/on-build.sh ]; \
then \
echo "Running custom on-build.sh of child" \
&& chmod +x /app/on-build.sh \
&& /bin/bash /app/on-build.sh ;\
fi
ONBUILD RUN cd /usr/src/app \
&& bundle install
CMD ["/usr/src/app/mu-ruby-template.sh"]