OfficeDev / OfficeDev/Office-Addin-TaskPane-React

Docker not working

Open
#167 0 comments 0 reactions 0 assignees View on GitHub

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.

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.