Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker not working #167

Open
3 tasks done
dhawaldenny opened this issue Nov 6, 2024 · 0 comments
Open
3 tasks done

Docker not working #167

dhawaldenny opened this issue Nov 6, 2024 · 0 comments

Comments

@dhawaldenny
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant