зеркало из https://github.com/Azure/autorest.git
30 строки
781 B
Docker
30 строки
781 B
Docker
FROM ubuntu:16.04
|
|
|
|
MAINTAINER lmazuel
|
|
|
|
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
|
|
|
|
# Required for install
|
|
RUN apt-get update && apt-get install -y curl
|
|
|
|
# NodeJS
|
|
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
|
|
apt-get update && apt-get install -y nodejs && \
|
|
npm install npm@latest -g
|
|
|
|
# Dotnet
|
|
RUN echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" | tee /etc/apt/sources.list.d/dotnetdev.list && \
|
|
apt-get update && apt-get install -y dotnet-dev-1.0.0-preview2.1-003177
|
|
|
|
# Autorest
|
|
RUN npm install -g autorest
|
|
RUN autorest --help
|
|
|
|
# Set the locale to UTF-8
|
|
RUN locale-gen en_US.UTF-8
|
|
ENV LANG en_US.UTF-8
|
|
ENV LANGUAGE en_US:en
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
ENTRYPOINT ["autorest"]
|