Commit 3fa2026 1 parent 95fd7a2 commit 3fa2026 Copy full SHA for 3fa2026
File tree 2 files changed +7
-13
lines changed
2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -70,15 +70,8 @@ RUN cd /app/ \
70
70
# # ##
71
71
# ##########################################################
72
72
73
-
74
- # Official Bun image
75
- FROM oven/bun:${BUN_VERSION} as automation-prod
76
-
77
- # Bun uses NODE_ENV for backward compatibility with Node
78
- ENV NODE_ENV="production"
79
-
80
- # Simplicity first
81
- WORKDIR /app
73
+ # Must be compatible with executable from Builder
74
+ FROM debian:buster-slim
82
75
83
76
# Open Container Initiative (OCI) labels
84
77
LABEL org.opencontainers.image.title="Automation Standalone" \
@@ -91,11 +84,12 @@ LABEL org.opencontainers.image.title="Automation Standalone" \
91
84
org.opencontainers.image.authors=
"Webber Takken <[email protected] >" \
92
85
org.opencontainers.image.licenses="MIT"
93
86
87
+ # Simplicity first
88
+ WORKDIR /app
89
+
94
90
# Copy the distributable files and production specific dependencies
95
91
COPY --from=builder /app/dist /app/package.json ./
96
- COPY --from=builder /app/node_modules node_modules
97
92
98
93
# Run the app
99
- USER bun
100
94
EXPOSE 3000
101
- ENTRYPOINT [ "bun" , "run" , "server.js" ]
95
+ CMD [ "./server" ]
Original file line number Diff line number Diff line change 9
9
"dev" : " bun --hot --watch src/main.ts" ,
10
10
"sync" : " yarn up \" @digital-alchemy/*\" && bunx --env-file .env type-writer" ,
11
11
"build" : " bun --env-file .env build:docker" ,
12
- "build:dist" : " bun build src/main.ts --target=bun --outfile= dist/server.js " ,
12
+ "build:dist" : " bun build src/main.ts --compile --minify -- outfile dist/server" ,
13
13
"build:docker" : " docker build . --build-arg HASS_TOKEN=$HASS_TOKEN --build-arg HASS_BASE_URL=$HASS_BASE_URL -t automation-prod" ,
14
14
"start" : " docker run --env-file .env automation-prod" ,
15
15
"test" : " vitest" ,
You can’t perform that action at this time.
0 commit comments