Category : npm

Node Version that my docker image has = v10.15.3 NPM version = 6.4.1 Below is my package.json, a list of all dependencies for the application. { }, "dependencies": { "@akveo/ng2-completer": "^9.0.1", "@angular/animations": "^10.0.10", "@angular/cdk": "10.1.1", "@angular/common": "^10.0.10", "@angular/compiler": "^10.0.10", "@angular/core": "^10.0.10", "@angular/forms": "^10.0.10", "@angular/google-maps": "^10.1.3", "@angular/material": "^11.1.1", "@angular/platform-browser": "^10.0.10", "@angular/platform-browser-dynamic": "^10.0.10", "@angular/router": "^10.0.10", "@asymmetrik/ngx-leaflet": "3.0.1", ..

Read more

I have a dockerized project in typescript and when I add a user in Dockerfile the docker container fails with permission denied error. My dockerfile is like this: FROM node:14.5.0-alpine3.12 ADD . /src WORKDIR /src RUN npm install -g typescript COPY package*.json ./ RUN npm install && adduser -u ${USER_ID} –gecos ” –disabled-password –no-create-home user ..

Read more

I’m trying to deploy an asp.net-core spa to a docker container but I’m having troubles in doing that. This is the image that I’m using FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim AS base WORKDIR /app EXPOSE 80 EXPOSE 443 FROM mcr.microsoft.com/dotnet/sdk:5.0-buster-slim AS build RUN apt-get update -yq && apt-get install curl gnupg -yq && curl -sL https://deb.nodesource.com/setup_10.x | bash ..

Read more

I have this DockerFile FROM docker:17.12.0-ce as static-docker-source FROM ubuntu:18.04 FROM python:3.8-slim-buster ARG CLOUD_SDK_VERSION=335.0.0 ENV CLOUD_SDK_VERSION=$CLOUD_SDK_VERSION ENV PATH "$PATH:/opt/google-cloud-sdk/bin/" COPY –from=static-docker-source /usr/local/bin/docker /usr/local/bin/docker RUN apt-get -qqy update && apt-get install -qqy curl gcc apt-transport-https lsb-release openssh-client git gnupg && pip install crcmod && export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && echo "deb https://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" > /etc/apt/sources.list.d/google-cloud-sdk.list ..

Read more

I have this DockerFile FROM docker:17.12.0-ce as static-docker-source FROM ubuntu:18.04 FROM python:3.8-slim-buster ARG CLOUD_SDK_VERSION=335.0.0 ENV CLOUD_SDK_VERSION=$CLOUD_SDK_VERSION ENV PATH "$PATH:/opt/google-cloud-sdk/bin/" COPY –from=static-docker-source /usr/local/bin/docker /usr/local/bin/docker RUN apt-get -qqy update && apt-get install -qqy curl gcc apt-transport-https lsb-release openssh-client git gnupg && pip install crcmod && export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && echo "deb https://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" > /etc/apt/sources.list.d/google-cloud-sdk.list ..

Read more

I’m trying to dockerize a simple create-react-app project. (Is the initial project after running npx create-react-app test, no files were changed). The problem seems to be that in newer versions of React, they moved the annoying .eslintcache from the root folder to /node_modules/.cache, causing problems when the container is trying to run the application via ..

Read more