This commit is contained in:
@@ -14,7 +14,7 @@ RUN cd /temp/dev && bun install --frozen-lockfile
|
||||
# install with --production (exclude devDependencies)
|
||||
RUN mkdir -p /temp/prod
|
||||
COPY package.json bun.lock /temp/prod/
|
||||
RUN cd /temp/prod && bun install --frozen-lockfile --production
|
||||
RUN cd /temp/prod && bun install --frozen-lockfile --production --ignore-scripts
|
||||
|
||||
# copy node_modules from temp directory
|
||||
# then copy all (non-ignored) project files into the image
|
||||
|
||||
Reference in New Issue
Block a user