File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ RUN mkdir -p ./storage && chown -R bun:bun ./storage && apt-get update && apt-ge
35
35
36
36
COPY --chown=bun:bun ./storage ./storage
37
37
38
+ # Clean up unnecessary files and folders
39
+ RUN rm -rf **/dist **/node_modules **/src **/tests **/*.DS_Store **/*.lockb
40
+
38
41
# Add storage volume for logs and other files
39
42
VOLUME ["/usr/src/storage" ]
40
43
Original file line number Diff line number Diff line change @@ -35,13 +35,6 @@ async function main() {
35
35
log . info ( ` ${ path . userServerPath ( 'storage' ) } ` , { styled : false } )
36
36
await deleteFolder ( path . userServerPath ( 'storage' ) )
37
37
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' )
45
38
46
39
log . info ( 'Building...' )
47
40
const result = await build ( {
You can’t perform that action at this time.
0 commit comments