mirror of
https://github.com/maciejpedzich/playlist-entry-validator.git
synced 2024-11-27 16:05:48 +01:00
Move runtime's USER directive above WORKDIR
This commit is contained in:
parent
a6a6f51d00
commit
daff508183
@ -1,14 +1,14 @@
|
||||
FROM node:lts-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
RUN npm i
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM node:lts-alpine AS runtime
|
||||
USER node
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV production
|
||||
USER node
|
||||
COPY --chown=node:node package*.json ./
|
||||
RUN npm ci --omit=dev
|
||||
COPY --from=build --chown=node:node /app/dist ./dist
|
||||
|
Loading…
Reference in New Issue
Block a user