Changing dockerfile to give permissions of workdir to node user sooner
This commit is contained in:
parent
449661a3e6
commit
c027079303
1 changed files with 3 additions and 2 deletions
|
|
@ -4,8 +4,10 @@ RUN apt-get update \
|
|||
&& apt-get install -y gcc chromium fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 --no-install-recommends
|
||||
RUN npm i -g node-gyp
|
||||
|
||||
USER node
|
||||
WORKDIR /app
|
||||
RUN chown -R node:node .
|
||||
|
||||
USER node
|
||||
|
||||
COPY --chown=node:node package.json package.json
|
||||
COPY --chown=node:node package-lock.json package-lock.json
|
||||
|
|
@ -13,7 +15,6 @@ RUN CXX=g++-12 npm install argon2
|
|||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
||||
ENV PUPPETEER_EXECUTABLE_PATH /usr/bin/chromium
|
||||
RUN npm install
|
||||
RUN chown -R node:node .
|
||||
|
||||
COPY --chown=node:node src src
|
||||
COPY --chown=node:node tsconfig.json tsconfig.json
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue