Merge pull request #32 from theoleuthardt/fix/tools-backend-error

fix: use root in dockerfile instead of fastify for permissions
This commit is contained in:
Theo Leuthardt 2025-03-04 15:53:22 +01:00 committed by GitHub
commit d8fc2efb12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,10 +58,11 @@ COPY --from=builder --chown=fastify:nodejs /app/dist ./dist
COPY --from=deps --chown=fastify:nodejs /app/node_modules ./node_modules
COPY --from=builder --chown=fastify:nodejs /app/package.json ./package.json
USER fastify
USER root
RUN mkdir -p /app/tmp && chown -R fastify:fastify /app/tmp
USER fastify
EXPOSE 4000
ARG CORS_ALLOWED_ORIGIN