Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 4bc4aed4 authored by Ichlasul Affan's avatar Ichlasul Affan
Browse files

Install Flutter after defining user and workdir

parent 0929f896
Branches
No related tags found
No related merge requests found
......@@ -19,6 +19,11 @@ RUN apt-get update \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
## Note to editors: Make sure name of USER and its WORKDIR path matches with
## the value of USERNAME above
USER $USERNAME
WORKDIR /home/$USERNAME/workspace
# Configure Sonar Scanner CLI
ARG SONAR_SCANNER_CLI_VERSION=4.0.0.1744
RUN wget -qO sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_CLI_VERSION-linux.zip \
......@@ -49,10 +54,7 @@ RUN wget --quiet --output-document=flutter.tar.xz $FLUTTER_VERSION && tar xf flu
# Switch back to dialog for any ad-hoc use of apt-get
ENV DEBIAN_FRONTEND=''
## Note to editors: Make sure name of USER and its WORKDIR path matches with
## the value of USERNAME above
USER $USERNAME
WORKDIR /home/$USERNAME/workspace
# Define default command to be run
CMD ["sonar-scanner"]
# Container image metadata
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment