You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add --no-install-recommends for apt-get install commands:
adding --no-install-recommends for apt-get install commands will probably/may reduce the amount of packages installed (then the package list may need to be increased with some required dependencies for the usage which are part of the recommended list, like for example ca-certificates package)
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS_VERSION}""cmake;${CMAKE_VERSION}""ndk;${ANDROID_NDK_VERSION}""patcher;v4""platforms;${ANDROID_API_LEVELS}"
each RUN command create layer, it's better to use less RUN commands instead, such as:
RUN set -ex; \
command1; \
command2;
Checkout specific commit of Tor_Onion_Proxy_Library
RUN git clone https://github.com/ACINQ/Tor_Onion_Proxy_Library && \
Doesn't use git checkout to check commit/tag, thus always will use latest commit which is not reproducible.
Running as root in container
Currently every command is run under root in the container, it's better to run whats possible under regular user instead.
Use USER directive to change to user created with useradd -ms /bin/bash appuser (ubuntu) or adduser -D appuser (alpine) commands
The text was updated successfully, but these errors were encountered:
adding
--no-install-recommends
forapt-get install
commands will probably/may reduce the amount of packages installed (then the package list may need to be increased with some required dependencies for the usage which are part of the recommended list, like for exampleca-certificates
package)phoenix/Dockerfile
Line 50 in 67e5a97
phoenix/Dockerfile
Line 53 in 67e5a97
phoenix/Dockerfile
Lines 77 to 82 in 67e5a97
phoenix/Dockerfile
Lines 55 to 63 in 67e5a97
each RUN command create layer, it's better to use less RUN commands instead, such as:
phoenix/Dockerfile
Line 66 in 67e5a97
Doesn't use
git checkout
to check commit/tag, thus always will use latest commit which is not reproducible.Currently every command is run under root in the container, it's better to run whats possible under regular user instead.
Use
USER
directive to change to user created withuseradd -ms /bin/bash appuser
(ubuntu) oradduser -D appuser
(alpine) commandsThe text was updated successfully, but these errors were encountered: