File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ RUN cd /temp/prod && bun install --frozen-lockfile --production
1212
1313FROM base AS prerelease
1414COPY --from=install /temp/dev/node_modules node_modules
15- COPY ./src ./src
15+ COPY . .
1616
1717ENV NODE_ENV=test
1818RUN bun run lint && \
@@ -23,8 +23,8 @@ COPY --from=install /temp/prod/node_modules node_modules
2323COPY --from=prerelease /bun/dist ./dist
2424
2525RUN mkdir -p /bun/src/image/assets/images
26- RUN chown -R bun:bun /bun/src/image/assets/images && \
27- chmod -R 600 /bun/src/image/assets/images
26+ RUN chown -R bun:bun /bun/src/image/assets/images
27+ RUN chmod -R 600 /bun/src/image/assets/images
2828
2929USER bun
3030EXPOSE 4000
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ WORKDIR /bun
44FROM base AS install
55RUN mkdir -p /temp/dev
66COPY package.json bun.lockb /temp/dev/
7- RUN cd /temp/dev && bun install --frozen-lockfile --ignore-scripts
7+ RUN cd /temp/dev && bun install --frozen-lockfile
88
99RUN mkdir -p /temp/prod
1010COPY package.json bun.lockb /temp/prod/
11- RUN cd /temp/prod && bun install --frozen-lockfile --production --ignore-scripts
11+ RUN cd /temp/prod && bun install --frozen-lockfile --production
1212
1313FROM base AS prerelease
1414COPY --from=install /temp/dev/node_modules node_modules
15- COPY ./src ./src
15+ COPY . .
1616
1717ENV NODE_ENV=production
1818RUN bun run lint && \
@@ -23,8 +23,8 @@ COPY --from=install /temp/prod/node_modules node_modules
2323COPY --from=prerelease /bun/dist ./dist
2424
2525RUN mkdir -p /bun/src/image/assets/images
26- RUN chown -R bun:bun /bun/src/image/assets/images && \
27- chmod -R 600 /bun/src/image/assets/images
26+ RUN chown -R bun:bun /bun/src/image/assets/images
27+ RUN chmod -R 600 /bun/src/image/assets/images
2828
2929USER bun
3030EXPOSE 4000
You can’t perform that action at this time.
0 commit comments