PowerShell docker image with Node JS

This page summarizes the projects mentioned and recommended in the original post on /r/docker

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • PowerShell

    PowerShell for every system!

    # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # Docker image file that describes an Ubuntu16.04 image with PowerShell installed from Microsoft APT Repo FROM ubuntu:16.04 AS installer-env ARG PS_PACKAGE_URL=https://github.com/PowerShell/PowerShell/releases/download/v7.2.0/powershell_7.2.0-1.deb_amd64.deb # Define ENVs for Localization/Globalization ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \ LC_ALL=en_US.UTF-8 \ LANG=en_US.UTF-8 \ # set a fixed location for the Module analysis cache PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-Ubuntu-16.04 # Install dependencies and clean up RUN apt-get update \ && apt-get install --no-install-recommends -y \ # curl is required to grab the Linux package curl \ # less is required for help in powershell less \ # requied to setup the locale locales \ # required for SSL ca-certificates \ gss-ntlmssp \ # PowerShell remoting over SSH dependencies openssh-client \ # Download the Linux package and save it && echo ${PS_PACKAGE_URL} \ && curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell.deb \ && apt-get install --no-install-recommends -y /tmp/powershell.deb \ && apt-get dist-upgrade -y \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ && locale-gen $LANG && update-locale \ # remove powershell package && rm /tmp/powershell.deb \ # intialize powershell module cache # and disable telemetry && export POWERSHELL_TELEMETRY_OPTOUT=1 \ && pwsh \ -NoLogo \ -NoProfile \ -Command " \ \$ErrorActionPreference = 'Stop' ; \ \$ProgressPreference = 'SilentlyContinue' ; \ while(!(Test-Path -Path \$env:PSModuleAnalysisCachePath)) { \ Write-Host "'Waiting for $env:PSModuleAnalysisCachePath'" ; \ Start-Sleep -Seconds 6 ; \ }" RUN apt-get update \ && apt-get -y install nodejs RUN ln -s /usr/bin/nodejs /usr/bin/node # Create app directory WORKDIR /usr/src/app# Install app dependencies COPY package*.json ./ RUN npm install # If you are building your code for production # RUN npm ci --only=production # Bundle app source COPY . . CMD [ "node", "./dist/index.js" ]

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts