Skip to content

Commit 9780a81

Browse files
committed
chore: wip
1 parent d6ead65 commit 9780a81

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

storage/framework/server/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ RUN mkdir -p ./storage && chown -R bun:bun ./storage && apt-get update && apt-ge
3535

3636
COPY --chown=bun:bun ./storage ./storage
3737

38+
# Clean up unnecessary files and folders
39+
RUN rm -rf **/dist **/node_modules **/src **/tests **/*.DS_Store **/*.lockb
40+
3841
# Add storage volume for logs and other files
3942
VOLUME ["/usr/src/storage"]
4043

storage/framework/server/build.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ async function main() {
3535
log.info(` ${path.userServerPath('storage')}`, { styled: false })
3636
await deleteFolder(path.userServerPath('storage'))
3737
log.success('Deleted old files')
38-
Bun.$.cwd(path.storagePath())
39-
log.info('Removing node_modules...')
40-
await Bun.$`rm -rf ./**/node_modules`.nothrow()
41-
log.success('Removed node_modules')
42-
log.info('Removing bun.lockb...')
43-
await Bun.$`rm -rf ./**/bun.lockb`.nothrow()
44-
log.success('Removed bun.lockb')
4538

4639
log.info('Building...')
4740
const result = await build({

0 commit comments

Comments
 (0)