Skip to content

Commit

Permalink
Issue #1375: combine three RUN into a single RUN
Browse files Browse the repository at this point in the history
as recommended by hadolint
  • Loading branch information
bschmalhofer committed Nov 1, 2021
1 parent 0618b97 commit 6c43e1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions otobo.web.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ ENV PATH "/opt/otobo_install/local/bin:/opt/otobo/local/bin:${PATH}"
# Clean up the .cpanm dir after the installation tasks as that dir is no longer needed
# and the unpacked Perl distributions sometimes have weird user and group IDs.
WORKDIR /opt/otobo_install
RUN cpanm --local-lib local Carton
COPY cpanfile.docker cpanfile
RUN PERL_CPANM_OPT="--local-lib /opt/otobo_install/local" carton install
RUN rm -rf "$HOME/.cpanm"
RUN cpanm --local-lib local Carton \
&& PERL_CPANM_OPT="--local-lib /opt/otobo_install/local" carton install \
&& rm -rf "$HOME/.cpanm"

# create the otobo user
# --user-group create group 'otobo' and add the user to the created group
Expand Down

0 comments on commit 6c43e1f

Please sign in to comment.