Skip to content

Commit

Permalink
Merge pull request #26 from RADAR-base/fix/dockerfile
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
mpgxvii authored Oct 8, 2024
2 parents cc6c8be + 277ca6b commit 20df4d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ RUN mkdir -p /app

WORKDIR /app

ENV NPM_CONFIG_CACHE=/home/node/.npm

COPY package*.json ./

RUN mkdir -p $NPM_CONFIG_CACHE && chown -R node:node $NPM_CONFIG_CACHE

RUN npm install

COPY . .
Expand All @@ -15,5 +19,4 @@ RUN npm run build

EXPOSE 3000

# Start the app on port 4455 as recommended by ory
CMD ["npm", "start", "--", "-p", "3000"]

0 comments on commit 20df4d7

Please sign in to comment.