Skip to content

Commit

Permalink
Add dotnetcore2.0 build image
Browse files Browse the repository at this point in the history
  • Loading branch information
mhart committed Feb 20, 2018
1 parent ce7f048 commit ee788ec
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions dotnetcore2.0/build/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM lambci/lambda-base:build

ENV PATH=/var/lang/bin:/usr/local/bin:/usr/bin/:/bin \
LD_LIBRARY_PATH=/var/lang/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib \
AWS_EXECUTION_ENV=AWS_Lambda_dotnetcore2.0 \
DOTNET_SDK_VERSION=2.1.3 \
DOTNET_CLI_TELEMETRY_OPTOUT=1 \
NUGET_XMLDOC_MODE=skip

RUN rm -rf /var/runtime /var/lang && \
curl https://lambci.s3.amazonaws.com/fs/dotnetcore2.0.tgz | tar -zx -C / && \
yum install -y libunwind && \
curl https://dot.net/v1/dotnet-install.sh | bash -s -- -v $DOTNET_SDK_VERSION -i /var/lang/bin && \
mkdir /tmp/warmup && \
cd /tmp/warmup && \
dotnet new && \
cd / && \
rm -rf /tmp/warmup /tmp/NuGetScratch

CMD ["dotnet", "build"]

0 comments on commit ee788ec

Please sign in to comment.