Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Feb 12, 2025
1 parent c95eff2 commit 96c7162
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
FROM node:22

RUN useradd -ms /bin/bash fieldpapers
RUN mkdir -p /home/fieldpapers/app && chown -R fieldpapers:fieldpapers /home/fieldpapers/app
USER node

USER fieldpapers

WORKDIR /home/fieldpapers/app
ADD . /home/fieldpapers/app/
WORKDIR /app
ADD . /app/

RUN npm install

VOLUME ["/home/fieldpapers/app"]
VOLUME ["/app"]
EXPOSE 8080

CMD npm start

0 comments on commit 96c7162

Please sign in to comment.