Load upload dir from ENV

This commit is contained in:
2024-08-16 14:41:33 +02:00
parent 0842c107e6
commit cbd03de6a3
3 changed files with 17 additions and 3 deletions

View File

@ -8,8 +8,10 @@ COPY . .
RUN npm run build
FROM node:21-alpine
USER node:node
WORKDIR /app
RUN chown -R node:node /app
USER node:node
COPY ./container/entrypoint.sh /entrypoint.sh
COPY package.json .
COPY --from=builder /app/build ./build
CMD ["node", "./build/index.js"]
ENTRYPOINT ["sh", "/entrypoint.sh"]