Giter Site home page Giter Site logo

promptject_docker_hello_world's Introduction

I asked Bing Chat to generate a beginner-friendly project using Docker and node.js. This repository is the result of me following Bing Chat's instructions and fixing any issues I encountered along the way.

Issues:

  1. I could tell the version of node.js specified by Bing was not current. I chose not to use the generated Dockerfile and generated one myself using this method which runs docker init.
  2. Running docker compose up --build produced this error: failed to solve: node:20.11.0-alpine: docker.io/library/node:20.11.0-alpine: not found. The Dockerfile that was generated required node-alpine which is a smaller version of node. I modified the FROM statement in the Dockerfile to use the regular version of node. However, that didn't work either. I then ran docker pull node, then tried to build again and the app was built successfully.
  3. Initially, I could not push my docker image to the docker hub. This was due to a combination of:
  • Not tagging the image correctly
  • Not creating a repository for my image on hub.docker.com
  • Not logging in to docker hub from my terminal. This link solved a lot of my issues
  1. nginx was not required to get the app running since express used it's own web server.

Summary: This was my first docker project where I was exposed to every stage of the SDLC up to Deployment. It took about a day from idea to deployment. Please feel free to audit my code and provide feedback. The link to the image on Dockerhub is here.

promptject_docker_hello_world's People

Contributors

kbs-code avatar

Watchers

 avatar

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.