title: Running Vue.js App on a different port with docker
body: <p>I created a simple VueJS app with a very basic configuration. I used the webpack configuration to do this.</p>
  
  <pre><code>vue init webpack app
  </code></pre>
  
  <p>I build this simple <code>Dockerfile</code> </p>
  
  <pre><code>FROM node:lts-alpine
  
  # install simple http server for serving static content
  RUN npm install -g http-server
  
  # make the 'app' folder the current working directory
  WORKDIR /app
  
  # copy both 'package.json' and 'package-lock.json' (if available)
  COPY package*.json ./
  
  # install project dependencies
  RUN npm install
  
  # copy project files and folders to the current working directory (i.e. 'app' folder)
  COPY . .
  
  # build app for production with minification
  RUN npm run build
  
  EXPOSE 3838
  CMD [ "http-server", "dist" ]
  </code></pre>
  
  <p>This app should run of a plattform which only listens to port 3838. Changing the Dockerfile to <code>EXPOSE 3838</code> did not work unfortunately.</p>
  
  <pre><code>sudo docker run -it -p 3838:3838 vuetest
  
  Starting up http-server, serving dist
  Available on:
    http://127.0.0.1:8080
  </code></pre>
  
  <p>The container runs, but stil on 8080.</p>
  
  <p>I´m quite unfamiliar with both VueJS and deploying, so can anyone help me? I guess the configuration to listen to 8080 might be set in a different file and the Dockerfile ignores it. </p>