fix: pre-own store dir for non-root volume mount
This commit is contained in:
@@ -11,5 +11,6 @@ WORKDIR /app
|
|||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
COPY --from=build /app/node_modules ./node_modules
|
COPY --from=build /app/node_modules ./node_modules
|
||||||
COPY --from=build /app/dist ./dist
|
COPY --from=build /app/dist ./dist
|
||||||
|
RUN mkdir -p /home/node/.config/dbmole && chown -R node:node /home/node/.config
|
||||||
USER node
|
USER node
|
||||||
ENTRYPOINT ["node", "dist/index.js"]
|
ENTRYPOINT ["node", "dist/index.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user