How we could dockerizing a Proton-Native App and see the GUI?

2/21/2020

I'm trying to dockerize a Proton-Native App, buy i'am not able of see the basic proyect

This is my Dockerfile

FROM node:13

WORKDIR /app ENV PATH /app/node_modules/.bin:$PATH

RUN npm install COPY . ./

RUN npx proton-native-cli init .

CMD ["npm", "start"]

Then I run

docker build -t sample:dev .

and

docker run sample:dev

Assuming that is posible see the GUI, not only access the docker image. What would be the correct way to complete the configuration?

Thanks for read! :)

-- Dario
docker
docker-swarm
kubernetes
react-native

1 Answer

2/24/2020

This idea, dockerizing a Proton-Native App for see the gui, is not a simple task, requires "a lot of extra work to get the display to show up at all (including installing extra host software on non-Linux hosts) and even more work to get access to user preferences and data files", like @DavidMaze explains

-- Dario
Source: StackOverflow