Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
Update microgravity Dockerfile with no root
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelOnFira committed Feb 2, 2024
1 parent fdc7f59 commit b0b1f54
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions javascript/microgravity.io/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
FROM node:16.13.0-alpine3.14

RUN apk add --no-cache git

WORKDIR /app

RUN apk add --no-cache git

COPY package.json yarn.lock ./

COPY src/ src/

RUN yarn install
RUN apk add --no-cache git \
&& yarn install \
&& adduser -D rivet

CMD ["node", "src/server/server.js"]
USER rivet

CMD ["node", "src/server/server.js"]

0 comments on commit b0b1f54

Please sign in to comment.