Skip to content
Snippets Groups Projects
Commit 26559588 authored by Ole Langbehn's avatar Ole Langbehn
Browse files

fix(docker): refactor Dockerfile

parent 564116e0
No related branches found
No related tags found
No related merge requests found
...@@ -45,11 +45,9 @@ CMD ["/opt/oathkeeper/start.sh"] ...@@ -45,11 +45,9 @@ CMD ["/opt/oathkeeper/start.sh"]
# install app # install app
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
COPY tsconfig.json package.json yarn.lock .meshrc.yml logger.ts server.ts /app/ COPY tsconfig.json package.json yarn.lock .meshrc.yml .yarnrc.yml logger.ts server.ts /app/
COPY handlers /app/handlers COPY handlers /app/handlers
COPY .mesh logger.ts /app/.mesh/ COPY .mesh logger.ts /app/.mesh/
# make corepack and newstyle yarn use node_modules
COPY /.yarnrc.yml .
RUN chown -R node:node /app && corepack enable RUN chown -R node:node /app && corepack enable
USER node USER node
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment