Fixed user uid for node user in dockerfile
This commit is contained in:
parent
c07e22ea8a
commit
2cc796840f
@ -1,12 +1,14 @@
|
|||||||
FROM cubetiq/calpine-os-linux:latest
|
FROM cubetiq/calpine-os-linux:latest
|
||||||
LABEL maintainer="sombochea@cubetiqs.com"
|
LABEL maintainer="sombochea@cubetiqs.com"
|
||||||
|
|
||||||
|
# Build with root access
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
ENV NODE_VERSION 14.16.0
|
ENV NODE_VERSION 14.16.0
|
||||||
|
ENV USER_UID 1001
|
||||||
|
|
||||||
RUN addgroup -g 1000 node \
|
RUN addgroup -g ${USER_UID} node \
|
||||||
&& adduser -u 1000 -G node -s /bin/sh -D node \
|
&& adduser -u ${USER_UID} -G node -s /bin/sh -D node \
|
||||||
&& apk add --no-cache \
|
&& apk add --no-cache \
|
||||||
libstdc++ \
|
libstdc++ \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
|
Loading…
Reference in New Issue
Block a user