Skip to content

Commit e160a40

Browse files
committed
fixed sudo no longer accepted
1 parent e38760f commit e160a40

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ RUN \
4747
RUN /usr/bin/curl -L -J "https://packages.opentofu.org/opentofu/tofu/packages/rpm_any/rpm_any/tofu-1.10.6-1.x86_64.rpm/download.rpm?distro_version_id=227" --output "opentofu.rpm" \
4848
&& rpm -ivh opentofu.rpm
4949

50-
USER ${USER_NAME}
51-
52-
WORKDIR /home/${USER_NAME}
53-
5450
RUN /usr/bin/curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" --output "awscliv2.zip" \
5551
&& unzip awscliv2.zip \
56-
&& sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update \
52+
&& ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update \
5753
&& rm -fr awscliv2.zip \
5854
&& rm -fr ./aws
5955

56+
USER ${USER_NAME}
57+
58+
WORKDIR /home/${USER_NAME}
59+
6060
# installing GHC, cabal and stack (better not use stack though)
6161
RUN \
6262
ghcup -v install ghc --force ${VERSION_GHC} && \

0 commit comments

Comments
 (0)