-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
35 lines (29 loc) · 1.01 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
FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine
# Base Development Packages
RUN apk update \
&& apk upgrade \
&& apk add ca-certificates wget && update-ca-certificates \
&& apk add --no-cache --update \
git \
curl \
wget \
bash \
make \
rsync \
nano
WORKDIR /CoreDocker
COPY src/CoreDocker.Api/*.csproj ./src/CoreDocker.Api/
COPY src/CoreDocker.Dal/*.csproj ./src/CoreDocker.Dal/
COPY src/CoreDocker.Sdk/*.csproj ./src/CoreDocker.Sdk/
COPY src/CoreDocker.Core/*.csproj ./src/CoreDocker.Core/
COPY src/CoreDocker.Shared/*.csproj ./src/CoreDocker.Shared/
COPY src/CoreDocker.Dal/*.csproj ./src/CoreDocker.Dal/
COPY src/CoreDocker.Dal.MongoDb/*.csproj ./src/CoreDocker.Dal.MongoDb/
WORKDIR /CoreDocker/src/CoreDocker.Api
RUN dotnet restore
RUN dotnet tool install nukeeper --global
RUN git config --global --add safe.directory /CoreDocker
# Working Folder
WORKDIR /CoreDocker
ENV TERM xterm-256color
RUN printf 'export PS1="\[\e[0;34;0;33m\][🐳DCKR]\[\e[0m\] \\t \[\e[40;38;5;28m\][\w]\[\e[0m\] \$ "' >> ~/.bashrc