Skip to content

Commit

Permalink
fix: docker build tsc permission issue
Browse files Browse the repository at this point in the history
tsc fails with permission denied for writing under lib. Fixed with advice
from nodejs/docker-node#740 (comment)
  • Loading branch information
tkurki committed Oct 23, 2019
1 parent 6316f50 commit 0eb8b11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ USER node
RUN mkdir -p /home/node/signalk
WORKDIR /home/node/signalk

COPY . .
RUN npm install --only=production
COPY --chown=node:node . .
RUN npm install
RUN mkdir -p /home/node/.signalk

EXPOSE 3000
Expand Down

0 comments on commit 0eb8b11

Please sign in to comment.