mzwing commited on
Commit
bc487d1
·
verified ·
1 Parent(s): f4da2fb

feat: load oneapi by default in login shell

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -3
  2. fish-oneapi +3 -0
Dockerfile CHANGED
@@ -61,8 +61,6 @@ RUN aria2c -c -x16 https://hf-mirror.com/hfd/hfd.sh \
61
  && chmod a+x hfd.sh \
62
  && mv hfd.sh /usr/bin/hfd
63
 
64
- RUN chsh -s /usr/bin/fish
65
-
66
  RUN pkgfile --update
67
 
68
  RUN git lfs install
@@ -70,7 +68,11 @@ RUN git lfs install
70
  RUN corepack prepare pnpm@latest \
71
  && corepack enable pnpm
72
 
73
- RUN useradd -m -s /usr/bin/fish mzwing
 
 
 
 
74
 
75
  USER mzwing
76
 
 
61
  && chmod a+x hfd.sh \
62
  && mv hfd.sh /usr/bin/hfd
63
 
 
 
64
  RUN pkgfile --update
65
 
66
  RUN git lfs install
 
68
  RUN corepack prepare pnpm@latest \
69
  && corepack enable pnpm
70
 
71
+ COPY fish-oneapi /usr/bin/fish-oneapi
72
+
73
+ RUN chmod +x /usr/bin/fish-oneapi
74
+
75
+ RUN useradd -m -s /usr/bin/fish-oneapi mzwing
76
 
77
  USER mzwing
78
 
fish-oneapi ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/usr/bin/sh
2
+ source /opt/intel/oneapi/setvars.sh
3
+ exec /usr/bin/fish