Updated and hide build root

This commit is contained in:
Sambo Chea 2021-07-14 15:31:21 +07:00
parent 3a6222fcc1
commit 399279a088
2 changed files with 2 additions and 3 deletions

View File

@ -12,4 +12,4 @@ jobs:
- name: Starter Docker Yarn Test - name: Starter Docker Yarn Test
uses: cubetiq/starter-docker-yarn-actions@main uses: cubetiq/starter-docker-yarn-actions@main
with: with:
run: docker version; node --version; npm --version; npx --version; yarn --version run: docker version

View File

@ -2,7 +2,7 @@ FROM cubetiq/calpine-docker:latest
LABEL maintainer="sombochea@cubetiqs.com" LABEL maintainer="sombochea@cubetiqs.com"
# Build with root access # Build with root access
USER root # USER root
ENV NODE_VERSION 14.16.0 ENV NODE_VERSION 14.16.0
ENV USER_UID 1001 ENV USER_UID 1001
@ -71,7 +71,6 @@ RUN addgroup -g ${USER_UID} node \
fi \ fi \
&& rm -f "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" \ && rm -f "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" \
&& apk del .build-deps \ && apk del .build-deps \
# smoke tests
&& node --version \ && node --version \
&& npm --version && npm --version