Skip to content

Commit 1a827a4

Browse files
author
1m1
committed
try using startup.jl
1 parent 0df9bc4 commit 1a827a4

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ FROM julia:1.11.5-bookworm
33
# RUN apt-get update
44
# RUN apt-get install -y git && rm -rf /var/lib/apt/lists/*
55

6+
RUN mkdir ~/.julia/config
7+
COPY startup.jl ~/.julia/config
68
COPY . /AbstractOS
79
WORKDIR /AbstractOS
810

@@ -11,4 +13,5 @@ ENV ABSTRACTOS_HTTP_PORT=8080
1113
ENV ABSTRACTOS_WEBSOCKET_PORT=8081
1214
EXPOSE 8080 8081
1315

14-
CMD ["julia", "-t", "4", "AbstractOS.jl"]
16+
CMD ["julia", "-t", "4"]
17+
# CMD ["julia", "-t", "4", "AbstractOS.jl"]

startup.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import Pkg
2+
3+
Pkg.add("Revise")
4+
using Revise
5+
6+
@show pwd()
7+
@show readdir()
8+
cd("AbstractOS")
9+
include("AbstractOS.jl")

0 commit comments

Comments
 (0)