diff --git a/Dockerfile b/Dockerfile index 72346a70..bee26bd8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,17 @@ -ARG NODE_VERSION=lts-alpine3.18@sha256:c8245ebe9d86862ab40bbaee04f69f9787c57b83beb6e9a174e8afc154989e1f +ARG NODE_VERSION=18-alpine3.18@sha256:c8245ebe9d86862ab40bbaee04f69f9787c57b83beb6e9a174e8afc154989e1f FROM node:$NODE_VERSION AS base WORKDIR /app ENV NODE_ENV production # needed for node alpine -RUN chown -R 1000:1000 /home/node && \ - chmod -R 755 /home/node && \ +RUN chown -R 1000:1000 /app && \ + chmod -R 755 /app && \ chown 1000:1000 /tmp && \ chmod 1777 /tmp USER 1000 FROM base AS builder -WORKDIR /app COPY yarn.lock .yarnrc.yml ./ COPY --chown=1000:1000 .yarn .yarn