1
0
Fork 0

chore: fix UID in dockerfile

This commit is contained in:
joostdecock 2022-12-18 14:43:22 +01:00
parent ab844024f6
commit 3ffe26d624

View file

@ -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