OfficeDev / Office-Addin-TaskPane-React

Template to get start started writing a TaskPane Office Add-in for the React framework using TypeScript
Other
59 stars 34 forks source link

Docker not working #167

Open dhawaldenny opened 3 weeks ago

dhawaldenny commented 3 weeks ago

Prerequisites

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

Expected behavior

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