Closed Jopenergy closed 5 years ago
Howdy! @Jopenergy, would it be possible to see the Dockerfile you used when running this in an empty container? I'm trying to reproduce the issue. Thanks so much!
@CassandraGoose and I were able to get floorspace running without too much trouble using the following Dockerfile, mostly copied from the vuejs cookbook:
FROM node:11.1.0
# 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 8080
CMD [ "http-server", "dist" ]
Does this work for what you're trying to do? It looks like you were trying to run the dev server from inside docker, but I'd recommend a local setup for the dev server.
As far as I'm concerned, I had actually used the node:latest image with a shared volume and simply had run "npm install". I don't really understand what went wrong... But anyway, it's working great with this Dockerfile ! Thank you!!
Hi,
I tried to launch Floorspace after forking the project locally and in an empty docker container (node 11.1.0, npm 6.4.1).
In both cases the installation (npm install) went well even if I got some little warnings.
But I encountered the same issue in both cases while trying to run (npm run dev):
People recommend to turn emitFile to false in the webpack config to solve the problem (https://github.com/webpack-contrib/file-loader/issues/2). So I tried in "/build/webpack.base.conf.js" but it had no effect.
Thank you in advance for your help,