Skip to content

Commit

Permalink
coa-updater: Update Docker image, use bun as build target
Browse files Browse the repository at this point in the history
  • Loading branch information
bperel committed Jul 8, 2024
1 parent 072afd9 commit 9014deb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/coa-updater/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-slim
FROM oven/bun
LABEL org.opencontainers.image.authors="Bruno Perel"

WORKDIR /app
Expand All @@ -8,4 +8,4 @@ RUN apt-get update && apt-get install -y mariadb-client wget && apt-get clean &&
COPY apps/coa-updater/bundle.mjs /app/

EXPOSE 3000
CMD ["node", "bundle.mjs"]
ENTRYPOINT ["bun", "bundle.mjs"]
2 changes: 1 addition & 1 deletion apps/coa-updater/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "~coa-updater",
"scripts": {
"build": "bun build --target node --sourcemap index.ts --outfile bundle.mjs"
"build": "bun build --target bun --sourcemap index.ts --outfile bundle.mjs"
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit 9014deb

Please sign in to comment.