Skip to content

Commit

Permalink
DATAGO-81660 updated dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rudraneel-chakraborty committed Aug 15, 2024
1 parent a5d942d commit 452392a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions service/application/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@ ENV HOME /home/$USER

VOLUME /tmp

# install sudo as root
RUN apk add --update sudo

# create user
RUN adduser -D $USER \
&& echo "$USER ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$USER \
&& chmod 0440 /etc/sudoers.d/$USER
RUN adduser -D $USER

RUN mkdir -p /opt/ema && chmod 777 /opt/ema && mkdir -p /opt/ema/terraform && chmod 777 /opt/ema/terraform
WORKDIR /opt/ema
Expand All @@ -26,9 +21,9 @@ RUN apk --update add --allow-untrusted /opt/ema/terraform/tofu_1.7.0_amd64.apk
ARG SOLACE_PROVIDER_VERSION=0.9.2-rc.2
ADD terraform-provider-solacebroker_${SOLACE_PROVIDER_VERSION}_${PLATFORM}.tar.gz /opt/ema/terraform

RUN sudo chown -R $USER:$USER $HOME
RUN chown -R $USER:$USER $HOME

RUN sudo chown -R $USER:$USER /opt/ema/
RUN chown -R $USER:$USER /opt/ema/

COPY .terraformrc $HOME/.terraformrc

Expand Down

0 comments on commit 452392a

Please sign in to comment.