Openstatus www.openstatus.dev

fix: bun run build (#1123)

authored by

Maximilian Kaske and committed by
GitHub
01d327da 8fbdf0b9

+13 -13
+4 -4
apps/workflows/Dockerfile
··· 3 3 # See https://github.com/lenra-io/dofigen 4 4 5 5 # install 6 - FROM oven/bun@sha256:e2c0b11e277f0285e089ffb77ad831faeec2833b9c4b04d6d317f054e587ef4e AS install 6 + FROM oven/bun@sha256:4ca745e33ed5b5b5233d3e1ed8d5e63dafd519d2adcfc37f65218ece032824f3 AS install 7 7 WORKDIR /app/ 8 8 RUN \ 9 9 --mount=type=bind,target=package.json,source=package.json \ ··· 17 17 bun install --production --ignore-scripts --frozen-lockfile --verbose 18 18 19 19 # build 20 - FROM oven/bun@sha256:e2c0b11e277f0285e089ffb77ad831faeec2833b9c4b04d6d317f054e587ef4e AS build 20 + FROM oven/bun@sha256:4ca745e33ed5b5b5233d3e1ed8d5e63dafd519d2adcfc37f65218ece032824f3 AS build 21 21 ENV NODE_ENV="production" 22 22 WORKDIR /app/apps/workflows 23 23 COPY \ ··· 27 27 --from=install \ 28 28 --link \ 29 29 "/app/node_modules" "/app/node_modules" 30 - RUN bun build --compile --sourcemap src/index.ts --outfile=app 30 + RUN bun build --compile --sourcemap --format=cjs src/index.ts --outfile=app 31 31 32 32 # runtime 33 - FROM debian@sha256:610b4c7ad241e66f6e2f9791e3abdf0cc107a69238ab21bf9b4695d51fd6366a AS runtime 33 + FROM debian@sha256:60a596681410bd31a48e5975806a24cd78328f3fd6b9ee5bc64dca6d46a51f29 AS runtime 34 34 COPY \ 35 35 --from=build \ 36 36 --chown=1000:1000 \
+8 -8
apps/workflows/dofigen.lock
··· 16 16 install: 17 17 fromImage: 18 18 path: oven/bun 19 - digest: sha256:e2c0b11e277f0285e089ffb77ad831faeec2833b9c4b04d6d317f054e587ef4e 19 + digest: sha256:4ca745e33ed5b5b5233d3e1ed8d5e63dafd519d2adcfc37f65218ece032824f3 20 20 workdir: /app/ 21 21 run: 22 22 - bun install --production --ignore-scripts --frozen-lockfile --verbose ··· 40 40 build: 41 41 fromImage: 42 42 path: oven/bun 43 - digest: sha256:e2c0b11e277f0285e089ffb77ad831faeec2833b9c4b04d6d317f054e587ef4e 43 + digest: sha256:4ca745e33ed5b5b5233d3e1ed8d5e63dafd519d2adcfc37f65218ece032824f3 44 44 workdir: /app/apps/workflows 45 45 env: 46 46 NODE_ENV: production ··· 53 53 - /app/node_modules 54 54 target: /app/node_modules 55 55 run: 56 - - bun build --compile --sourcemap src/index.ts --outfile=app 56 + - bun build --compile --sourcemap --format=cjs src/index.ts --outfile=app 57 57 fromImage: 58 58 path: debian 59 - digest: sha256:610b4c7ad241e66f6e2f9791e3abdf0cc107a69238ab21bf9b4695d51fd6366a 59 + digest: sha256:60a596681410bd31a48e5975806a24cd78328f3fd6b9ee5bc64dca6d46a51f29 60 60 copy: 61 61 - fromBuilder: build 62 62 paths: ··· 72 72 library: 73 73 debian: 74 74 bullseye-slim: 75 - digest: sha256:610b4c7ad241e66f6e2f9791e3abdf0cc107a69238ab21bf9b4695d51fd6366a 75 + digest: sha256:60a596681410bd31a48e5975806a24cd78328f3fd6b9ee5bc64dca6d46a51f29 76 76 oven: 77 77 bun: 78 78 latest: 79 - digest: sha256:e2c0b11e277f0285e089ffb77ad831faeec2833b9c4b04d6d317f054e587ef4e 79 + digest: sha256:4ca745e33ed5b5b5233d3e1ed8d5e63dafd519d2adcfc37f65218ece032824f3 80 80 resources: 81 81 dofigen.yml: 82 - hash: d232b15ff842b392611e64b97bf65d642ca573052072490c2f54ea2f4dc4481e 82 + hash: f708205b6699a47937d4ce49a38a2aa1b3f5ed409b685c285603e9e1b5f9fea0 83 83 content: | 84 84 ignore: 85 85 - node_modules ··· 123 123 # Compile the TypeScript application 124 124 env: 125 125 NODE_ENV: production 126 - run: bun build --compile --sourcemap src/index.ts --outfile=app 126 + run: bun build --compile --sourcemap --format=cjs src/index.ts --outfile=app 127 127 fromImage: debian:bullseye-slim 128 128 copy: 129 129 - fromBuilder: build
+1 -1
apps/workflows/dofigen.yml
··· 40 40 # Compile the TypeScript application 41 41 env: 42 42 NODE_ENV: production 43 - run: bun build --compile --sourcemap src/index.ts --outfile=app 43 + run: bun build --compile --sourcemap --format=cjs src/index.ts --outfile=app 44 44 fromImage: debian:bullseye-slim 45 45 copy: 46 46 - fromBuilder: build