forked from 3scale/porta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (26 loc) · 928 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
FROM quay.io/3scale/system-builder:ruby26-nodejs12
ARG CUSTOM_DB=mysql
ENV DISABLE_SPRING="true" \
ORACLE_SYSTEM_PASSWORD="threescalepass" \
NLS_LANG="AMERICAN_AMERICA.UTF8" \
TZ="UTC" \
MASTER_PASSWORD="p" \
USER_PASSWORD="p" \
LC_ALL="en_US.UTF-8" \
PATH="./node_modules/.bin:/opt/rh/rh-nodejs12/root/usr/bin:$PATH" \
DNSMASQ="#" \
BUNDLE_FROZEN=1 \
BUNDLE_JOBS=5 \
DB=${CUSTOM_DB} \
SAFETY_ASSURED=1
WORKDIR /opt/system/
ADD . ./
ADD config/examples/*.yml config/
# Needed for Sphinx ODBC
ADD config/oracle/odbc*.ini /etc/
USER root
RUN if [ "X${DB}" = "Xoracle" ]; then ./script/oracle/install-instantclient-packages.sh; fi
# Needed to disable webpack compiling
RUN sed -i 's/compile: true/compile: false/' config/webpacker.yml
RUN bash -c "bundle install && bundle exec rake tmp:create"
RUN bash -c "npm install -g yarn && yarn install:safe && rake assets:precompile"