diff --git a/Dockerfile b/Dockerfile index e406bed..09703c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,13 @@ WORKDIR /usr/src/upvite FROM base AS install RUN mkdir -p /temp/dev -COPY package.json bun.lockb /temp/dev/ -RUN cd /temp/dev && bun install --frozen-lockfile +COPY package.json /temp/dev/ +RUN cd /temp/dev && bun install # install with --production (exclude devDependencies) RUN mkdir -p /temp/prod -COPY package.json bun.lockb /temp/prod/ -RUN cd /temp/prod && bun install --frozen-lockfile --production +COPY package.json /temp/prod/ +RUN cd /temp/prod && bun install --production # copy node_modules from temp directory # then copy all (non-ignored) project files into the image