diff --git a/Dockerfile b/Dockerfile index bcd780e6..f5099872 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,15 @@ -FROM node:12.13-alpine +FROM node:alpine -RUN mkdir -p /usr/src/node-app +RUN mkdir -p /usr/src/node-app && chown -R node:node /usr/src/node-app WORKDIR /usr/src/node-app COPY package.json yarn.lock ./ +USER node + RUN yarn install --pure-lockfile -COPY . . +COPY --chown=node:node . . EXPOSE 3000