Skip to content

Commit

Permalink
split RUN command in base dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanizz committed Aug 14, 2023
1 parent 6807f5c commit fc477a3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions contrib/docker-ckan/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ RUN ls -la ../
COPY . ${SRC_DIR}/ckan
RUN cd ${SRC_DIR}/ckan && \
pip3 install -e . && \
cp who.ini ${APP_DIR} && \
pip3 install -r requirement-setuptools.txt && \
pip3 install --no-binary markdown -r requirements.txt && \
# Install CKAN envvars to support loading config from environment variables
pip3 install -e git+https://github.com/okfn/ckanext-envvars.git#egg=ckanext-envvars && \
# Create and update CKAN config
ckan generate config ${CKAN_INI} && \
cp who.ini ${APP_DIR}
RUN pip3 install -r requirement-setuptools.txt
RUN pip3 install --no-binary markdown -r requirements.txt
# Install CKAN envvars to support loading config from environment variables
RUN pip3 install -e git+https://github.com/okfn/ckanext-envvars.git#egg=ckanext-envvars
# Create and update CKAN config
RUN ckan generate config ${CKAN_INI} && \
ckan config-tool ${CKAN_INI} "ckan.plugins = ${CKAN__PLUGINS}"

# Create a local user and group to run the app
Expand Down

0 comments on commit fc477a3

Please sign in to comment.