Verified Commit 7249cb74 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[CodiMD] Change UID/GID to match LDAP entry

parent 04a2f604
......@@ -18,8 +18,8 @@ RUN cd /opt/codimd && npm install && \
FROM node:10.22.1-alpine3.11
RUN addgroup --gid 1500 codimd && \
adduser -u 1500 -G codimd -D codimd && \
RUN addgroup --gid 5010 codimd && \
adduser -u 5010 -G codimd -D codimd && \
mkdir /home/$USER_NAME/.npm && \
echo "prefix=/home/codimd/.npm/" > /home/$USER_NAME/.npmrc && \
mkdir -p /home/codimd/app && \
......@@ -34,7 +34,7 @@ USER codimd
WORKDIR /home/codimd/app
COPY --chown=1500:1500 --from=BUILD /opt/codimd .
COPY --chown=5010:5010 --from=BUILD /opt/codimd .
RUN npm install --production && npm cache clean --force && rm -rf /tmp/{core-js-banners,phantomjs}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment