OfficeDev / OfficeDev/Office-Addin-TaskPane-React
Docker not working
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 89
- Forks
- 46
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 3
Description
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.
- Create Dockerfile as mentioned in above code
- Build
- Run
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported Dockerfile workflow: build the image, run it, and check the webpack-dev-server output. Review the project's existing npm scripts, especially build:dev, and define done as a documented Docker setup that builds successfully and serves the development app on port 3000.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, node.js, typescript, webpack
- Domain
- build-system, devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100