diff --git a/Dockerfile b/Dockerfile index 00b63c4..33d9143 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # use the official Bun image # see all versions at https://hub.docker.com/r/oven/bun/tags FROM oven/bun:1 AS base -WORKDIR /usr/src/app +WORKDIR /app USER root # install dependencies into temp directory @@ -25,9 +25,9 @@ COPY . . # copy production dependencies and source code into final image FROM base AS release COPY --from=install /temp/prod/node_modules node_modules -COPY --from=prerelease /usr/src/app/src/ src/ -COPY --from=prerelease /usr/src/app/package.json . -COPY --from=prerelease /usr/src/app/tsconfig.json . +COPY --from=prerelease /app/src/ src/ +COPY --from=prerelease /app/package.json . +COPY --from=prerelease /app/tsconfig.json . RUN apt-get update && apt-get install tree RUN tree -I node_modules