-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
69 lines (51 loc) · 1.68 KB
/
Dockerfile
File metadata and controls
69 lines (51 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
FROM jupyter/scipy-notebook:7a0c7325e470
# .NET SDK versiyonunu ayarla
ENV DOTNET_SDK_VERSION 9.0.200
# Kullanıcı ve UID ayarları
ARG NB_USER=jovyan
ARG NB_UID=1000
ENV USER ${NB_USER}
ENV NB_UID ${NB_UID}
ENV HOME /home/${NB_USER}
WORKDIR ${HOME}
USER root
RUN apt-get update && apt-get install -y curl
# Install .NET CLI dependencies
RUN apt-get install -y --no-install-recommends \
libc6 \
libgcc1 \
libgssapi-krb5-2 \
libicu60 \
libssl1.1 \
libstdc++6 \
zlib1g
RUN rm -rf /var/lib/apt/lists/*
# Install .NET Core SDK
RUN curl -SL --output dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz \
&& mkdir -p /usr/share/dotnet \
&& tar -zxf dotnet.tar.gz -C /usr/share/dotnet \
&& rm dotnet.tar.gz \
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
# PATH güncellemesi
ENV PATH="${PATH}:/root/.dotnet/tools"
# .NET Interactive'i yükle
RUN dotnet tool install -g Microsoft.dotnet-interactive
RUN dotnet tool install -g Microsoft.dotnet-try
# Jupyter ile etkileşimi sağlamak için kernel kurulumunu yap
RUN dotnet interactive jupyter install
# Global araçlar için PATH güncellemesi
ENV PATH="${PATH}:/root/.dotnet/tools"
# Notebooks dosyalarını kopyala
COPY ./notebooks/ ${HOME}/notebooks/
# NuGet kaynaklarını kopyala (eğer varsa)
COPY ./NuGet.config ${HOME}/nuget.config
# Kullanıcı sahipliğini ayarla
RUN chown -R ${NB_UID} ${HOME}
# Jupyter'ı kullanıcı olarak çalıştır
USER ${USER}
# Notebook dizinine geç
WORKDIR ${HOME}/notebooks/
# Varsayılan Jupyter portunu aç
EXPOSE 8888
# Jupyter'i başlat
CMD ["start-notebook.sh"]