-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (41 loc) · 1.47 KB
/
Dockerfile
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
FROM mcr.microsoft.com/dotnet/sdk:5.0 as dotnet-builder
FROM ubuntu:focal
WORKDIR /app
COPY --from=dotnet-builder /usr/share/dotnet /usr/share/dotnet
# install dependencies
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
jq \
wait-for-it \
net-tools \
# Neo Blockchain Toolkit dependencies:
libsnappy-dev \
libc6-dev \
librocksdb-dev \
# SSL certs:
ca-certificates
ENV HOME=/root
ENV \
PATH=$HOME/.dotnet/tools:$PATH \
#############################
# .NET Core SDK: Env vars:
#############################
# Enable detection of running in a container
DOTNET_RUNNING_IN_CONTAINER=true \
# Enable correct mode for dotnet watch (only mode supported in a container)
DOTNET_USE_POLLING_FILE_WATCHER=true \
# Disable Telemetry
DOTNET_CLI_TELEMETRY_OPTOUT=true \
# Skip extraction of XML docs - generally not useful within an image/container - helps performance
NUGET_XMLDOC_MODE=skip \
# Check this out:
# https://github.com/dotnet/core/issues/2186#issuecomment-671105420
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
RUN ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet && \
# Ensure backwards compatibility with some tools:
ln -s /usr/share/dotnet/dotnet /usr/local/bin/dotnet
# Install: Neo Express
RUN dotnet tool install Neo.Express -g
ADD init_and_run_neoxp.sh /app/init_and_run_neoxp.sh
RUN chmod +x /app/init_and_run_neoxp.sh
ENTRYPOINT ["/app/init_and_run_neoxp.sh"]