Git Product home page Git Product logo

medium-angular-docker's Introduction

Angular Docker

This project was generated with Angular CLI.

Angular: 15.x

Scripts

Script Description Example
start start the application npm start
build built application for production npm run build
build:docker build docker image npm run build:docker
start:docker start the prebuilt docker image on port 3000 npm run start:docker
test run unit tests in watch mode npm test
test:ci run unit tests for CI/CD environment npm run test:ci

medium-angular-docker's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

medium-angular-docker's Issues

Staged build gives node error

I am working from your tutorial at https://denys.dev/2018-03-02/your-angular-apps-as-docker-containers/. The tutorial is excellent, but when I get to the staged image build, I get a node related error. When I run:

docker image build -t my-angular-app .

I get this error:

> [email protected] build /usr/src/app
> ng build --prod

You are running version v10.4.1 of Node.js, which is not supported by Angular CLI 8.0+.
The official Node.js version that is supported is 10.9 or greater.

Please visit https://nodejs.org/en/ to find instructions on how to update Node.js.
npm ERR! code ELIFECYCLE
npm ERR! errno 3
npm ERR! [email protected] build: `ng build --prod`
npm ERR! Exit status 3
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-08-09T01_05_45_413Z-debug.log
The command '/bin/sh -c npm ci && npm run build' returned a non-zero code: 3

I'm running your code that I just cloned form GitHub.

I'm not familiar enough with what docker is doing with node to understand what the problem is.

Any ideas?

Thanks!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.