Skip to content

Commit

Permalink
chore: clean up docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Deivu committed Aug 16, 2024
1 parent 6c1ae48 commit a46b467
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,10 @@ FROM node:lts-alpine

LABEL org.opencontainers.image.source = "https://github.com/shipgirlproject/Formidable"

RUN addgroup -g 900 formidable && \
adduser -S -u 900 -G formidable formidable
WORKDIR /home/node/app

WORKDIR /home/formidable

COPY . /home/formidable

RUN mkdir -p /home/formidable && \
chown -R formidable:formidable /home/formidable

USER formidable
COPY . .

RUN npm install

ENTRYPOINT ["npm", "run", "dev"]
ENTRYPOINT ["npm", "start"]

0 comments on commit a46b467

Please sign in to comment.