mirror of
https://github.com/theoleuthardt/werkzeugkiste.git
synced 2026-06-13 01:27:54 +00:00
fix: use root user for creating tmp directory in backend docker container
This commit is contained in:
parent
f8ad566e61
commit
92736be58f
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue