Skip to content

Commit f499617

Browse files
committed
chore: wip
1 parent e32f708 commit f499617

File tree

8 files changed

+17
-4
lines changed

8 files changed

+17
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ It’s incredibly easy to get started with this framework. Simply run the follow
3232

3333
```bash
3434
curl -Ssf stacksjs.org/install | sh # wip
35-
# alternatively, if Bun >= v1.0 is installed already,
35+
# alternatively, if Bun >= v1.0.25 is installed already,
3636
# you may also get started via:
3737
bunx stacks new my-project
3838
```

storage/framework/server/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
bootstrap
22
*bun-build
3+
routes
4+
config

storage/framework/server/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ FROM base AS release
3535
COPY --from=install /temp/prod/node_modules node_modules
3636
COPY --from=prerelease /usr/src/app/index.ts .
3737
COPY --from=prerelease /usr/src/app/package.json .
38+
COPY --from=prerelease /usr/src/app/routes .
3839

3940
# run the app
4041
USER bun

storage/framework/server/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ This directory is used to store files to build the Docker image for the server.
55
## TODO
66

77
- [ ] Don't include node_modules in the Docker image, but bundle it using Bun
8-
- [ ] Include bun.lockb file to build the Docker image
8+
- [ ] Include bun.lockb file to build the Docker image && the `--frozen-lockfile` flag

storage/framework/server/build.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { $ } from 'bun'
2+
3+
await $`echo 'test'`
4+
5+
await $`cp -r ../../../config ./config`
6+
await $`cp -r ../../../routes ./routes`
7+
8+
await $`docker build --pull -t stacks-test .`

storage/framework/server/bunfig.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ savePath = "bun.lockb"
4747

4848
# whether to save the lockfile to disk
4949
save = true
50-
preload = [ "./storage/framework/core/bun-plugin-yaml/src/index.ts" ]
50+
preload = [ "../core/bun-plugin-yaml/src/index.ts" ]

storage/framework/server/config

Lines changed: 0 additions & 1 deletion
This file was deleted.

storage/framework/server/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "stacks-cloud",
33
"type": "module",
44
"version": "0.58.28",
5+
"scripts": {
6+
"build": "bun build.ts"
7+
},
58
"dependencies": {
69
"@stacksjs/router": "^0.58.51",
710
"aws4fetch": "^1.0.17"

0 commit comments

Comments
 (0)