chown now recursive, on all project data

This commit is contained in:
2023-11-13 12:29:30 +01:00
parent 9546093ee4
commit 5e12b93114

View File

@@ -13,7 +13,7 @@ COPY --from=builder /data/src/main.js ./src/
COPY --from=builder /data/dist ./dist COPY --from=builder /data/dist ./dist
RUN yarn install --production RUN yarn install --production
RUN adduser --disabled-password --gecos "" slowdowner RUN adduser --disabled-password --gecos "" slowdowner
RUN chown slowdowner:slowdowner /data RUN chown -R slowdowner:slowdowner /data
USER slowdowner USER slowdowner
CMD yarn run start CMD yarn run start
EXPOSE 8080 EXPOSE 8080