Skip to content

How to run the examples in a docker container ? #1631

Answered by gchoqueux
EricBoix asked this question in Q&A
Discussion options

You must be logged in to vote

We have solution, thanks @arnaudbirk

It's not docker problem, could you try:

# Write a Dockerfile
FROM node:lts-stretch
RUN apt-get -y update
RUN apt-get install -y git
RUN git clone https://github.com/iTowns/itowns.git  --branch  v2.26.0
WORKDIR /itowns
RUN npm install
RUN npm run prepare
EXPOSE 8080
CMD [ "npm", "start", "--", "--host=0.0.0.0" ]

# build
docker build --no-cache -t docker-itowns 

#start 
docker run -ti --rm -p 8080:8080 docker-itowns

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gchoqueux
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1503 on April 13, 2021 10:14.