Skip to content

Docker not working #167

Open
Open
@dhawaldenny

Description

@dhawaldenny

Prerequisites

Please answer the following questions before submitting an issue.
YOU MAY DELETE THE PREREQUISITES SECTION.

  • I am running the latest version of Node and the tools
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Expected behavior

  • Currently I don't see any way to dockerize. Looking for adding docker support

Current behavior

Created Docker Image but its not working :

FROM node:20.12.0
WORKDIR /app
RUN apt-get update && apt-get -y install sudo git
COPY . /app/
RUN npm install
RUN npm install -g webpack webpack-cli
RUN npm run build:dev
EXPOSE 3000
CMD ["npx", "webpack-dev-server", "--mode", "development","--host", "0.0.0.0"]

Please provide information about the failure. What is the current behavior? If it is not a bug, please submit your idea to the Microsoft Tech Community Ideas forum, so that it gets added to our feature roadmap.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Create Dockerfile as mentioned in above code
  2. Build
  3. Run

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions