Skip to content

Commit eb71fd4

Browse files
committed
Fix new deployment strategy
1 parent e688778 commit eb71fd4

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN yarn install --frozen-lockfile --network-concurrency 5 --no-progress
2020
COPY . .
2121

2222
# Build the application
23-
RUN npx tsx --build src/app.js --outfile dist/app.js
23+
RUN npx esbuild src/app.js --bundle --platform=node --format=esm --outfile=dist/app.js
2424

2525
# Expose dev server port
2626
EXPOSE 8080

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"@typescript-eslint/eslint-plugin": "^6.19.0",
7272
"@typescript-eslint/parser": "^6.19.0",
7373
"chalk": "4",
74+
"esbuild": "^0.23.0",
7475
"eslint": "^8.56.0",
7576
"eslint-config-prettier": "^9.1.0",
7677
"eslint-import-resolver-node": "^0.3.9",

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3322,7 +3322,7 @@ es6-promisify@^5.0.0:
33223322
dependencies:
33233323
es6-promise "^4.0.3"
33243324

3325-
esbuild@~0.23.0:
3325+
esbuild@^0.23.0, esbuild@~0.23.0:
33263326
version "0.23.1"
33273327
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.23.1.tgz#40fdc3f9265ec0beae6f59824ade1bd3d3d2dab8"
33283328
integrity sha512-VVNz/9Sa0bs5SELtn3f7qhJCDPCF5oMEl5cO9/SSinpE9hbPVvxbd572HH5AKiP7WD8INO53GgfDDhRjkylHEg==

0 commit comments

Comments
 (0)