chore: fix UID in dockerfile
This commit is contained in:
parent
ab844024f6
commit
3ffe26d624
1 changed files with 1 additions and 2 deletions
|
@ -9,7 +9,6 @@ COPY package* ./
|
||||||
COPY prisma .
|
COPY prisma .
|
||||||
RUN apt-get update && apt-get install -y openssl
|
RUN apt-get update && apt-get install -y openssl
|
||||||
RUN npm install pm2 && npm ci
|
RUN npm install pm2 && npm ci
|
||||||
RUN ls -l /backend/node_modules/prisma/libquery_engine-debian-openssl-1.1.x.so.node
|
|
||||||
RUN npx prisma generate
|
RUN npx prisma generate
|
||||||
|
|
||||||
## Build app
|
## Build app
|
||||||
|
@ -37,7 +36,7 @@ RUN mkdir -p /backend/src/landing
|
||||||
COPY --from=builder /backend/src/landing/* /backend/src/landing/
|
COPY --from=builder /backend/src/landing/* /backend/src/landing/
|
||||||
|
|
||||||
## Add a user to run the app
|
## Add a user to run the app
|
||||||
RUN useradd --home-dir /backend --comment FreeSewing --no-create-home --uid 20000 freesewing
|
RUN useradd --home-dir /backend --comment FreeSewing --no-create-home --uid 2000 freesewing
|
||||||
RUN chown -R freesewing /backend
|
RUN chown -R freesewing /backend
|
||||||
|
|
||||||
## Drop privleges and run app
|
## Drop privleges and run app
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue