mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-26 09:36:07 +00:00
dockerfile: drop privileges to regular user
Some checks are pending
Some checks are pending
This commit is contained in:
parent
ea73d09c8f
commit
7b9830c5af
|
@ -17,8 +17,10 @@ RUN pnpm deploy --filter=@imput/cobalt-api --prod /prod/api
|
|||
FROM base AS api
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /prod/api /app
|
||||
COPY --from=build /app/.git /app/.git
|
||||
COPY --from=build --chown=node:node /prod/api /app
|
||||
COPY --from=build --chown=node:node /app/.git /app/.git
|
||||
|
||||
USER node
|
||||
|
||||
EXPOSE 9000
|
||||
CMD [ "node", "src/cobalt" ]
|
||||
|
|
Loading…
Reference in a new issue